2016-03-08 8 views
0

Получаем ошибку, например, «NEED WP BEFORE PQ» в ответе OTA_AirPrice, я передаю SegmentSelect и пытаюсь сделать заказ без SegmentSelect, кажется, что процесс обрабатывается нормально, но если я был SegmentSelect, я не получаю ответа.Ошибка в OTA_AirPriceLLSRQ

Приложите мой запрос & resposnse.

Запрос

<OTA_AirPriceRQ ReturnHostCommand="true" Version="2.3.0" xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<PriceRequestInformation Retain="true"> 
    <OptionalQualifiers> 
     <FlightQualifiers> 
      <VendorPrefs> 
      <Airline Code='AI'/> 
      </VendorPrefs> 
     </FlightQualifiers> 
     <PricingQualifiers> 

      <ItineraryOptions> 
       <SegmentSelect Number='0001'/> 
      </ItineraryOptions> 

      <PassengerType Code='ADT' Quantity='1'/> 
     </PricingQualifiers> 
    </OptionalQualifiers> 
</PriceRequestInformation> 
</OTA_AirPriceRQ> 

Любая помощь приветствуется, спасибо

ответ

1
**before try air-price, you should airbook(OTA_AirBookLLSRQ).** 


<OTA_AirBookRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0.0"> 
     <OriginDestinationInformation> 
     <FlightSegment FlightNumber="2388" ArrivalDateTime="2016-02-27T17:10:00" DepartureDateTime="2016-02-27T15:55:00" NumberInParty="1" Status="NN" ResBookDesigCode="K"> 
      <DestinationLocation LocationCode="BOM"/> 
      <MarketingAirline Code="9W" FlightNumber="2388"/> 
      <MarriageGrp Ind="false"/> 
      <OriginLocation LocationCode="IDR"/> 
     </FlightSegment> 
     <FlightSegment FlightNumber="461" ArrivalDateTime="2016-02-27T19:50:00" DepartureDateTime="2016-02-27T17:50:00" NumberInParty="1" Status="NN" ResBookDesigCode="K"> 
      <DestinationLocation LocationCode="MAA"/> 
      <MarketingAirline Code="9W" FlightNumber="461"/> 
      <MarriageGrp Ind="true"/> 
      <OriginLocation LocationCode="BOM"/> 
     </FlightSegment> 
     </OriginDestinationInformation> 
    </OTA_AirBookRQ> 


<OTA_AirPriceRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" Version="2.7.0"> 
     <PriceRequestInformation Retain="true"> 
     <OptionalQualifiers> 
      <PricingQualifiers CurrencyCode="INR"> 
      <PassengerType Code="ADT" Quantity="1"/> 
      </PricingQualifiers> 
     </OptionalQualifiers> 
     </PriceRequestInformation> 
    </OTA_AirPriceRQ> 
0

Может быть связаны между собой, но есть ли причина, почему вы не используете последнюю версию OTA_AirPrice?

Текущая последняя версия 2.11.0, но вы показываете 2.3.0 ... https://developer.sabre.com/docs/read/soap_apis/air/book/price_air_itinerary/resources

+0

На самом деле я просто после выборки, предоставленной моим клиентом ... – Deep