576
правок
Изменения
Нет описания правки
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
==== Ответ ====
<div class="mw-collapsible-content">
</div>
= Примеры Пример использования =
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
==== Запрос ====
<div class="mw-collapsible-content">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="http://trunk.mlsd.ru/nemoflights/?version%3D1.0%26for%3DBookFlight">
<soapenv:Header/>
<soapenv:Body>
<ver:BookFlight>
<RequestBin>
<Request>
<BookFlight>
<FlightId>171430002</FlightId>
<BookingCodes>
<!--Zero or more repetitions:-->
<BookingCode Code="E" SegNumber="2"/>
</BookingCodes>
<Travellers>
<!--Zero or more repetitions:-->
<Traveller Type="ADT" IsContact="true" Num="1">
<PersonalInfo DateOfBirth="20.05.1980" Nationality="RU" Gender="M">
<FirstName>Petr</FirstName>
<LastName>Ivanov</LastName>
</PersonalInfo>
<ContactInfo>
<!--Optional:-->
<EmailID>testmail@mail.ru</EmailID>
<!--Optional:-->
<Telephone Type="M">
<!--Optional:-->
<PhoneNumber>79051234567</PhoneNumber>
</Telephone>
</ContactInfo>
<DocumentInfo DocType="A" DocNum="123456" CountryCode="RU" DocElapsedTime="01.01.2020"/>
</Traveller>
</Travellers>
</BookFlight>
</Request>
<Source>
<ClientId>---</ClientId>
<APIKey>---</APIKey>
<Language>RU</Language>
<Currency>RUB</Currency>
</Source>
</RequestBin>
</ver:BookFlight>
</soapenv:Body>
</soapenv:Envelope>
</div>
</div>
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
==== Ответ ====
<div class="mw-collapsible-content">
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://trunk.mlsd.ru/nemoflights/?version%3D1.0%26for%3DBookFlight" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:BookFlightResponse>
<ResponseBin>
<Response>
<BookFlight ID="262872" Status="booked" Code="LQHZWU">
<QueryPlace xsi:nil="true"/>
<Flight FlightId="171430002">
<WebService>SABRE</WebService>
<ValCompany>SU</ValCompany>
<URL>http%3A%2F%2FCLIENT_DOMAIN%2F%3Fgo%3Dbooking%2Finfo%26uid%3D14290%26flight%3D171430002</URL>
<Segments>
<Segment SegNum="1" SegGroupNum="0">
<DepAirp CodeType="IATA">SVO</DepAirp>
<DepTerminal>D</DepTerminal>
<ArrAirp CodeType="IATA">BCN</ArrAirp>
<ArrTerminal>1</ArrTerminal>
<OpAirline>SU</OpAirline>
<MarkAirline>SU</MarkAirline>
<FlightNumber>2512</FlightNumber>
<AircraftType>321</AircraftType>
<DepDateTime>2014-03-20T20:40:00</DepDateTime>
<ArrDateTime>2014-03-20T22:20:00</ArrDateTime>
<StopNum>0</StopNum>
<BookingCodes>
<BookingCode ClassType="economy">
<BookingCode>E</BookingCode>
</BookingCode>
</BookingCodes>
<FlightTime>280</FlightTime>
<TimeZone Departure="4" Arrival="1"/>
<ETicket>true</ETicket>
</Segment>
<Segment SegNum="2" SegGroupNum="0">
<DepAirp CodeType="IATA">BCN</DepAirp>
<DepTerminal>1</DepTerminal>
<ArrAirp CodeType="IATA">MAD</ArrAirp>
<ArrTerminal>2</ArrTerminal>
<OpAirline>UX</OpAirline>
<MarkAirline>SU</MarkAirline>
<FlightNumber>3403</FlightNumber>
<AircraftType>738</AircraftType>
<DepDateTime>2014-03-21T12:05:00</DepDateTime>
<ArrDateTime>2014-03-21T13:25:00</ArrDateTime>
<StopNum>0</StopNum>
<BookingCodes>
<BookingCode ClassType="economy">
<BookingCode>E</BookingCode>
</BookingCode>
</BookingCodes>
<FlightTime>80</FlightTime>
<TimeZone Departure="1" Arrival="1"/>
<ETicket>true</ETicket>
</Segment>
</Segments>
<PricingInfo Refundable="false">
<PassengerFare Type="ADT" Quantity="1">
<BaseFare Currency="EUR" Amount="165"/>
<EquiveFare Currency="RUB" Amount="8335"/>
<TotalFare Currency="RUB" Amount="14025"/>
<Taxes>
<Tax CurCode="RUB" TaxCode="YQF" Amount="4242"/>
<Tax CurCode="RUB" TaxCode="YRI" Amount="374"/>
<Tax CurCode="RUB" TaxCode="JD" Amount="844"/>
<Tax CurCode="RUB" TaxCode="QV" Amount="230"/>
</Taxes>
<Tariffs/>
<FareCalc>MOW SU X/BCN SU MAD225.45NUC225.45END ROE0.731857</FareCalc>
<LastTicketDateTime>2014-03-14T12:45:00</LastTicketDateTime>
</PassengerFare>
</PricingInfo>
<Commission Currency="RUB">0</Commission>
<Charges Currency="RUB">140.25</Charges>
<TotalPrice Currency="RUB">14165.25</TotalPrice>
</Flight>
<Agency/>
<ItinReceipts xsi:nil="true"/>
<FareStored xsi:nil="true"/>
<Travellers>
<Traveller Type="ADT" IsContact="true" Num="1">
<Meal/>
<Ticket/>
<Seats/>
<PersonalInfo DateOfBirth="20.05.1980" Nationality="RU" Gender="M">
<FirstName>PETR</FirstName>
<LastName>IVANOV</LastName>
<MiddleName/>
</PersonalInfo>
<LoyaltyCard/>
<ContactInfo>
<EmailID>TESTMAIL@MAIL.ru</EmailID>
<Telephone Type="M">
<PhoneNumber>79051234567</PhoneNumber>
<CountryAccessCode/>
<AreaCityCode/>
</Telephone>
</ContactInfo>
<DocumentInfo DocType="A" DocNum="123456" CountryCode="RU" DocElapsedTime="01.01.2020"/>
<VisaInfo/>
<ArrAddress/>
<PreferedPlace/>
<DocStringFormats/>
</Traveller>
</Travellers>
</BookFlight>
<Requisites/>
<RequestType xsi:nil="true"/>
<UserID xsi:nil="true"/>
<Errors xsi:nil="true"/>
</Response>
</ResponseBin>
</ns1:BookFlightResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</div>
</div>
== См. также ==