Sabre BargainFinderMax (BFM) returns 只有一个行程
Sabre BargainFinderMax (BFM) returns only one itinerary
我正在使用 Sabre 的 soap api 获取航班详细信息,xml 请求如下:
`<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="0.AAA.X" ID="REQ.ID">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-04-21T03:18:35</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="SIN"/>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
<NumTrips Number="1"/>
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>`
但出于某种原因,我的回复总是仅限于一个航班行程,
感谢您的帮助。
谢谢。
好吧,这看起来很奇怪,你可以尝试提出以下要求:
<OTA_AirLowFareSearchRQ AvailableFlightsOnly="true" ResponseType="OTA" ResponseVersion="3.0.0" Version="3.0.0" xmlns="http://www.opentravel.org/OTA/2003/05">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID ID="REQ.ID" Type="0.AAA.X">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation RPH="1">
<DepartureDateTime>2017-04-21T00:00:00</DepartureDateTime>
<DepartureWindow>00002359</DepartureWindow>
<OriginLocation LocationCode="YYZ" LocationType="A"/>
<DestinationLocation LocationCode="SIN" LocationType="A"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences ETicketDesired="true" ValidInterlineTicket="true">
<TPA_Extensions>
<TripType Value="OneWay"/>
<FlightStopsAsConnections Ind="true"/>
<ExcludeCallDirectCarriers Enabled="true"/>
</TPA_Extensions>
<Baggage Description="true" RequestType="A"/>
</TravelPreferences>
<TravelerInfoSummary>
<SeatsRequested>1</SeatsRequested>
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
<PriceRequestInformation CurrencyCode="TRY" NegotiatedFaresOnly="false"/>
</TravelerInfoSummary>
<TPA_Extensions>
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions></OTA_AirLowFareSearchRQ>
只返回一个行程会有很多理由。试试这个请求,如果你遇到错误或其他什么,现在就告诉我,我们将逐步继续。
补充说明:请注意,您在发出请求时必须使用您的代理配置,例如:使用应使用您之前定义的货币。
此致。
所以我想通了,您需要将 <NumTrips Number="5"/>
标记设置为您想要的所需行程的数量,或者如果您希望使用所有响应则不要设置它。
`<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="0.AAA.X" ID="REQ.ID">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-04-21T03:18:35</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="SIN"/>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
**<NumTrips Number="5"/>**
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>`
我正在使用 Sabre 的 soap api 获取航班详细信息,xml 请求如下:
`<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="0.AAA.X" ID="REQ.ID">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-04-21T03:18:35</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="SIN"/>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
<NumTrips Number="1"/>
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>`
但出于某种原因,我的回复总是仅限于一个航班行程, 感谢您的帮助。
谢谢。
好吧,这看起来很奇怪,你可以尝试提出以下要求:
<OTA_AirLowFareSearchRQ AvailableFlightsOnly="true" ResponseType="OTA" ResponseVersion="3.0.0" Version="3.0.0" xmlns="http://www.opentravel.org/OTA/2003/05">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID ID="REQ.ID" Type="0.AAA.X">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation RPH="1">
<DepartureDateTime>2017-04-21T00:00:00</DepartureDateTime>
<DepartureWindow>00002359</DepartureWindow>
<OriginLocation LocationCode="YYZ" LocationType="A"/>
<DestinationLocation LocationCode="SIN" LocationType="A"/>
<TPA_Extensions>
<SegmentType Code="O"/>
</TPA_Extensions>
</OriginDestinationInformation>
<TravelPreferences ETicketDesired="true" ValidInterlineTicket="true">
<TPA_Extensions>
<TripType Value="OneWay"/>
<FlightStopsAsConnections Ind="true"/>
<ExcludeCallDirectCarriers Enabled="true"/>
</TPA_Extensions>
<Baggage Description="true" RequestType="A"/>
</TravelPreferences>
<TravelerInfoSummary>
<SeatsRequested>1</SeatsRequested>
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
<PriceRequestInformation CurrencyCode="TRY" NegotiatedFaresOnly="false"/>
</TravelerInfoSummary>
<TPA_Extensions>
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions></OTA_AirLowFareSearchRQ>
只返回一个行程会有很多理由。试试这个请求,如果你遇到错误或其他什么,现在就告诉我,我们将逐步继续。
补充说明:请注意,您在发出请求时必须使用您的代理配置,例如:使用应使用您之前定义的货币。
此致。
所以我想通了,您需要将 <NumTrips Number="5"/>
标记设置为您想要的所需行程的数量,或者如果您希望使用所有响应则不要设置它。
`<OTA_AirLowFareSearchRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="3.0.0" ResponseType="OTA" ResponseVersion="3.0.0">
<POS xmlns="http://www.opentravel.org/OTA/2003/05">
<Source PseudoCityCode="XXXX">
<RequestorID Type="0.AAA.X" ID="REQ.ID">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
<OriginDestinationInformation xmlns="http://www.opentravel.org/OTA/2003/05" RPH="1">
<DepartureDateTime>2017-04-21T03:18:35</DepartureDateTime>
<OriginLocation LocationCode="YYZ"/>
<DestinationLocation LocationCode="SIN"/>
</OriginDestinationInformation>
<TravelPreferences xmlns="http://www.opentravel.org/OTA/2003/05">
<TPA_Extensions>
**<NumTrips Number="5"/>**
</TPA_Extensions>
</TravelPreferences>
<TravelerInfoSummary xmlns="http://www.opentravel.org/OTA/2003/05">
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1"/>
</AirTravelerAvail>
</TravelerInfoSummary>
<TPA_Extensions xmlns="http://www.opentravel.org/OTA/2003/05">
<IntelliSellTransaction>
<RequestType Name="50ITINS"/>
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>`