Я хочу интегрировать веб-сервис в свой проект
нет документа для обслуживания ... Вот
образец в документе
Подключение к услуге:
$cl= new \SoapClient(null, array(
'location' => 'http://tpg.ua/avia.php',
'uri' => 'http://tpg.ua/avia.php',
'login' => 'login','password' => 'password'
));
и они прислали мне две фотографии
что мне делать? Я пишу их поддержку, но им все равно
Я пишу этот код, но возвращаемое значение NULL
string content = @"<? xml version = ""1.0"" encoding = ""utf-8"" ?>
<soap:Envelope
xmlns:soap = ""http://schemas.xmlsoap.org/soap/envelope/"">
<soap:Header>
<getTicketPrices xmlns = ""http://tempuri.org/"">
<login>tpg_webservice</login>
<password>tpg12345</password>
</getTicketPrices>
</soap:Header>
<soap:Body>
<SENSITIVEDATA xmlns = ""http://tempuri.org/"" />
</soap:Body>
</soap:Envelope>";
try
{
using (WebClient wClient = new WebClient())
{
wClient.Headers.Add("Content-Type", "text/xml; charset=utf-8");
wClient.Headers.Add("SOAPAction", "http://tpg.ua/avia.php/getTicketPrices");
var result = wClient.UploadData("http://tpg.ua/avia.php"
, "POST"
, Encoding.UTF8.GetBytes(content));
var response = System.Text.Encoding.Default.GetString(result);
Console.WriteLine(response);
}
}
catch (WebException excp)
{
Console.WriteLine(excp.Message);
}