576
правок
Изменения
Перейти к навигации
Перейти к поиску
<pre><?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"xmlns:ns1="http://srt.mute-lab.com/nemoflights/?version%3D1.0%26for%3DSearchFlights"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc"> <ns1:searchResponse> <rpc:result>ResponseBin</rpc:result> <ResponseBin> <Response> <SearchFlights> <Flights> <Flight FlightId="369546"> <WebService>GALILEO</WebService> <ValCompany>LX</ValCompany> <Segments> <Segment SegNum="1"> <DepAirp CodeType="IATA">PRG</DepAirp> <DepTerminal>2</DepTerminal> <ArrAirp CodeType="IATA">ZRH</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>C3</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1485</FlightNumber> <AircraftType>100</AircraftType> <DepDateTime>2011-03-02T09:50:00</DepDateTime> <ArrDateTime>2011-03-02T11:10:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>L</BookingCode> </BookingCodes> <FlightTime>80</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="2"> <DepAirp CodeType="IATA">ZRH</DepAirp> <DepTerminal xsi:nil="true"/> <ArrAirp CodeType="IATA">DME</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>LX</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1326</FlightNumber> <AircraftType>321</AircraftType> <DepDateTime>2011-03-02T12:25:00</DepDateTime> <ArrDateTime>2011-03-02T17:50:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>L</BookingCode> </BookingCodes> <FlightTime>205</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="3"> <DepAirp CodeType="IATA">MXP</DepAirp> <DepTerminal>1</DepTerminal> <ArrAirp CodeType="IATA">ZRH</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>LX</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1617</FlightNumber> <AircraftType>AR1</AircraftType> <DepDateTime>2011-03-04T11:10:00</DepDateTime> <ArrDateTime>2011-03-04T12:10:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>T</BookingCode> </BookingCodes> <FlightTime>60</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="4"> <DepAirp CodeType="IATA">ZRH</DepAirp> <DepTerminal xsi:nil="true"/> <ArrAirp CodeType="IATA">PRG</ArrAirp> <ArrTerminal>2</ArrTerminal> <OpAirline>C3</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1486</FlightNumber> <AircraftType>100</AircraftType> <DepDateTime>2011-03-04T12:55:00</DepDateTime> <ArrDateTime>2011-03-04T14:10:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>T</BookingCode> </BookingCodes> <FlightTime>75</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> </Segments> <PricingInfo Refundable="false"> <PassengerFare Type="ADT" Quantity="1"> <BaseFare Currency="CZK" Amount="4750"/> <EquiveFare Currency="RUB" Amount="8075"/> <TotalFare Currency="RUB" Amount="14290"/> <Taxes> <Tax CurCode="RUB" TaxCode="RI" Amount="252"/> <Tax CurCode="RUB" TaxCode="CZ" Amount="893"/> <Tax CurCode="RUB" TaxCode="CH" Amount="1512"/> <Tax CurCode="RUB" TaxCode="EX" Amount="85"/> <Tax CurCode="RUB" TaxCode="HB" Amount="185"/> <Tax CurCode="RUB" TaxCode="IT" Amount="237"/> <Tax CurCode="RUB" TaxCode="MJ" Amount="24"/> <Tax CurCode="RUB" TaxCode="VT" Amount="75"/> <Tax CurCode="RUB" TaxCode="YQ" Amount="2952"/> </Taxes> <Tariffs> <Tariff Code="LSWISSCZ" SegNum="1"/> <Tariff Code="LSWISSCZ" SegNum="2"/> <Tariff Code="TSWISSCZ" SegNum="3"/> <Tariff Code="TSWISSCZ" SegNum="4"/> </Tariffs> <FareCalc xsi:nil="true"/> <LastTicketDateTime>2011-02-23T23:59:00</LastTicketDateTime> </PassengerFare> </PricingInfo> <Commission Currency="RUB">0</Commission> <Charges Currency="RUB">880</Charges> </Flight> <Flight FlightId="369547"> <WebService>GALILEO</WebService> <ValCompany>LX</ValCompany> <Segments> <Segment SegNum="1"> <DepAirp CodeType="IATA">PRG</DepAirp> <DepTerminal>2</DepTerminal> <ArrAirp CodeType="IATA">ZRH</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>C3</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1485</FlightNumber> <AircraftType>100</AircraftType> <DepDateTime>2011-03-02T09:50:00</DepDateTime> <ArrDateTime>2011-03-02T11:10:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>L</BookingCode> </BookingCodes> <FlightTime>80</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="2"> <DepAirp CodeType="IATA">ZRH</DepAirp> <DepTerminal xsi:nil="true"/> <ArrAirp CodeType="IATA">DME</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>LX</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1326</FlightNumber> <AircraftType>321</AircraftType> <DepDateTime>2011-03-02T12:25:00</DepDateTime> <ArrDateTime>2011-03-02T17:50:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>L</BookingCode> </BookingCodes> <FlightTime>205</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="3"> <DepAirp CodeType="IATA">MXP</DepAirp> <DepTerminal>1</DepTerminal> <ArrAirp CodeType="IATA">ZRH</ArrAirp> <ArrTerminal xsi:nil="true"/> <OpAirline>2L</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1629</FlightNumber> <AircraftType>100</AircraftType> <DepDateTime>2011-03-04T15:00:00</DepDateTime> <ArrDateTime>2011-03-04T15:50:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>T</BookingCode> </BookingCodes> <FlightTime>50</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="4"> <DepAirp CodeType="IATA">ZRH</DepAirp> <DepTerminal xsi:nil="true"/> <ArrAirp CodeType="IATA">PRG</ArrAirp> <ArrTerminal>2</ArrTerminal> <OpAirline>C3</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1498</FlightNumber> <AircraftType>100</AircraftType> <DepDateTime>2011-03-04T17:30:00</DepDateTime> <ArrDateTime>2011-03-04T18:45:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode>T</BookingCode> </BookingCodes> <FlightTime>75</FlightTime> <TimeZone xsi:nil="true"/> <ETicket>true</ETicket> </Segment> </Segments> <PricingInfo Refundable="false"> <PassengerFare Type="ADT" Quantity="1"> <BaseFare Currency="CZK" Amount="4750"/> <EquiveFare Currency="RUB" Amount="8075"/> <TotalFare Currency="RUB" Amount="14290"/> <Taxes> <Tax CurCode="RUB" TaxCode="RI" Amount="252"/> <Tax CurCode="RUB" TaxCode="CZ" Amount="893"/> <Tax CurCode="RUB" TaxCode="CH" Amount="1512"/> <Tax CurCode="RUB" TaxCode="EX" Amount="85"/> <Tax CurCode="RUB" TaxCode="HB" Amount="185"/> <Tax CurCode="RUB" TaxCode="IT" Amount="237"/> <Tax CurCode="RUB" TaxCode="MJ" Amount="24"/> <Tax CurCode="RUB" TaxCode="VT" Amount="75"/> <Tax CurCode="RUB" TaxCode="YQ" Amount="2952"/> </Taxes> <Tariffs> <Tariff Code="LSWISSCZ" SegNum="1"/> <Tariff Code="LSWISSCZ" SegNum="2"/> <Tariff Code="<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://trunk.mlsd.ru/nemoflights/?version%3D1.0%26for%3DSearchFlights" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ns1:searchResponse> <ResponseBin> <Response> <SearchFlights> <Flights SearchId="13967" ResultURL="http%3A%2F%2Falex.mlsd.ru%2F%3Fgo%3Dsearch%2Fview_results%26uid%3D13967"> <Flight FlightId="168260001"> <WebService>SABRE</WebService> <ValCompany/> <URL>http%3A%2F%2Falex.mlsd.ru%2F%3Fgo%3Dbooking%2Finfo%26uid%3D13967%26flight%3D168260001</URL> <Segments> <Segment SegNum="1" SegGroupNum="0"> <DepAirp CodeType="IATA">PRG</DepAirp> <DepTerminal/> <ArrAirp CodeType="IATA">ZRH</ArrAirp> <ArrTerminal/> <OpAirline>LX</OpAirline> <MarkAirline>LX</MarkAirline> <FlightNumber>1485</FlightNumber> <AircraftType>AR1</AircraftType> <DepDateTime>2014-03-20T10:10:00</DepDateTime> <ArrDateTime>2014-03-20T11:35:00</ArrDateTime> <StopNum>0</StopNum> <BookingCodes> <BookingCode ClassType="economy"> <BookingCode>K</BookingCode> </BookingCode> </BookingCodes> <FlightTime>85</FlightTime> <TimeZone Departure="1" Arrival="1"/> <ETicket>true</ETicket> </Segment> <Segment SegNum="2" SegGroupNum="0"> <DepAirp CodeType="IATA">ZRH</DepAirp> <DepTerminal/> <ArrAirp CodeType="IATA">DME</ArrAirp>
→Сложный маршрут
== Сложный маршрут ==
Пример xml-запроса для сложного маршрута: Прага - Москва - Милан - ПрагаМадрид, 1 взрослый, 1 ребенок, 1 младенец с местом , эконом класс.
<div class="toccolours mw-collapsible mw-collapsed" style="width:1000px">
'''REQUEST'''
<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%3DSearchFlights">
<soapenv:Header/>
<soapenv:Body>
<ver:search>
<RequestBin>
<Request>
<SearchFlights LinkOnly="false">
<ODPairs Type="CR" Direct="false" AroundDates="0">
<!--Zero or more repetitions:-->
<ODPair>
<DepDate>2014-03-20</DepDate>
<DepAirp CodeType="IATA">PRG</DepAirp>
<ArrAirp CodeType="IATA">MOW</ArrAirp>
</ODPair>
<ODPair>
<DepDate>2014-03-23</DepDate>
<DepAirp CodeType="IATA">MOW</DepAirp>
<ArrAirp CodeType="IATA">MIL</ArrAirp>
</ODPair>
<ODPair>
<DepDate>2014-03-27</DepDate>
<DepAirp CodeType="IATA">MIL</DepAirp>
<ArrAirp CodeType="IATA">MAD</ArrAirp>
</ODPair>
</ODPairs>
<Travellers>
<!--Zero or more repetitions:-->
<Traveller Type="ADT" Count="1"/>
<Traveller Type="INF" Count="1"/>
</Travellers>
<Restrictions>
<ClassPref>economy</ClassPref>
<OnlyAvail>false</OnlyAvail>
<AirVPrefs/>
<IncludePrivateFare>false</IncludePrivateFare>
<CurrencyCode>RUB</CurrencyCode>
</Restrictions>
</SearchFlights>
</Request>
<Source>
<ClientId>131</ClientId>
<APIKey>54FD7BDA6786D38E6C39AF1DAF4F1316</APIKey>
<Language>RU</Language>
<Currency>RUB</Currency>
</Source>
</RequestBin>
</ver:search>
</soapenv:Body>
</soapenv:Envelope>
</syntaxhighlight>
</div>
</div>
<pre><?xml version="1.0" encodingdiv class="UTFtoccolours mw-8"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soapcollapsible mw-envelopecollapsed" xmlns:ns1style="httpwidth://srt.mute-lab.com/nemoflights/?version%3D1.0%26for%3DSearchFlights1000px"> <env:Body> <ns1:search> <RequestBin> <Request> <SearchFlights> <ODPairs Type="CR" Direct="false" AroundDates="0"> <ODPair> <DepDate>2011-03-02T00:00:00</DepDate> <DepAirp CodeType="IATA">PRG</DepAirp> <ArrAirp CodeType="IATA">MOW</ArrAirp> </ODPair> <ODPair> <DepDate>2011-03-04T00:00:00</DepDate> <DepAirp CodeType="IATA">MIL</DepAirp> <ArrAirp CodeType="IATA">PRG</ArrAirp> </ODPair> </ODPairs> <Travellers> <Traveller Type="ADT" Count="1"/> <Traveller Type="CNN" Count="1"/> <Traveller Type="ADT" Count="1"/> </Travellers> <Restrictions> <ClassPref>all</ClassPref> <OnlyAvail>false</OnlyAvail> <AirVPrefs/> <IncludePrivateFare>false</IncludePrivateFare> <CurrencyCode>RUB</CurrencyCode> </Restrictions> </SearchFlights> </Request> <Source> <ClientId>102</ClientId> <APIKey>7F48365D42B73307C99C12A578E92B36</APIKey> <Language>RU</Language> <Currency>RUB</Currency> </Source> </RequestBin> </ns1:search> </env:Body></env:Envelope></pre>
'''RESPONSE'''
== См. также ==