Изменения

Перейти к навигации Перейти к поиску

Дополнительные запросы АПИ авиабилетов

3980 байт добавлено, 12:55, 23 октября 2017
Нет описания правки
</PriceChange>
</AirAvail>
<Requisites/>
<RequestType xsi:nil="true"/>
<UserID xsi:nil="true"/>
<Error Code="?">Сообщение об ошибке</Error>
</Response>
</ResponseBin>
</ns1:AirAvailResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</syntaxhighlight>
</div>
</div>
 
=== Получение документа ===
 
Запрос на получение документа из заказа системы Nemo
 
WSDL: http://CLIENT_DOMAIN/nemoflights/wsdl.php?for=GetDocument
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
==== Запрос ====
<div class="mw-collapsible-content">
<syntaxhighlight lang="xml" line enclose="div" style="font-size:9pt;background: #F9F9F9; border: 1px dashed #2F6FAB; padding: 10px 5px; margin: 10px 0;">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="http://CLIENT_DOMAIN/nemoflights/?version%3D1.0%26for%3DAirAvail">
<soapenv:Header/>
<soapenv:Body>
<ver:AirAvail>
<RequestBin>
<Request>
<GetDocument>
<!-- BookId — Id заказа в системе Nemo, необязательный-->
<BookId>142330001</BookId>
<!-- BookNemo2Id — Id заказа в системе Nemo2, необязательный-->
<BookNemo2Id>142330001</BookNemo2Id>
<!-- DocType — Тип запрашиваемого документа, возможные значения: ItinReceiptNemo - маршрут квитанция в формате Nemo -->
<DocType>142330001</DocType>
</GetDocument>
</Request>
<Source>
<!--Авторизация, обязательный-->
<!--ClientId, идентификатор клиента, обязательный-->
<!--APIKey, API ключ клиента, обязательный-->
<!--Language, код языка, обязательный-->
<!--Currency код валюты, обязательный-->
<ClientId>---</ClientId>
<APIKey>---</APIKey>
<Language>RU</Language>
<Currency>RUB</Currency>
</Source>
</RequestBin>
</ver:AirAvail>
</soapenv:Body>
</soapenv:Envelope>
</syntaxhighlight>
</div>
</div>
 
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
 
==== Ответ ====
<div class="mw-collapsible-content">
<syntaxhighlight lang="xml" line enclose="div" style="font-size:9pt;background: #F9F9F9; border: 1px dashed #2F6FAB; padding: 10px 5px; margin: 10px 0;">
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://CLIENT_DOMAIN/nemoflights/?version%3D1.0%26for%3DAirAvail" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:AirAvailResponse>
<ResponseBin>
<Response BookId="?" BookNemo2Id="?">
<!-- BookId — Id заказа в системе Nemo -->
<!-- BookNemo2Id — Id заказа в системе Nemo2 -->
<PaperDocument>
<!-- Type — Тип возвращаемого документа -->
<Type>?</Type>
<!-- Format — Формат возвращаемого документа -->
<Format>?</Format>
<!-- Encoding — Кодировка возвращаемого документа (не используется) -->
<Encoding>?</Encoding>
<!-- DocumentData — Содержимое документа -->
<DocumentData>?</DocumentData>
<!-- IsBase64Wrapped — -->
<IsBase64Wrapped>?</IsBase64Wrapped>
</PaperDocument>
<Requisites/>
<RequestType xsi:nil="true"/>

Навигация

'