Passenger type mismatch in search request and response

混江龙づ霸主 提交于 2019-12-25 09:24:00

问题


I send 3 adults and 2 childs in search request(action: BargainFinderMax_RQ ) and in response(action: BargainFinderMax_RS) we receive 5 adults.

Sabre returns as info :

CNN NOT APPLICABLE - ADT FARE USED - VERIFY RESTRICTIONS

I would like to ask if there is any parameter supplied that Sabre provides that will let me receive only given passenger type.

Edit: Here is the BargainFinderMaxRQ:

  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <OTA_AirLowFareSearchRQ PrimaryLangID="En" Version="1.8.5" ResponseType="OTA" ResponseVersion="1.8.5" xmlns="http://www.opentravel.org/OTA/2003/05">
      <OriginDestinationInformation RPH="1">
        <DepartureDateTime>2016-08-26T12:00:00</DepartureDateTime>
        <DepartureWindow>00002359</DepartureWindow>
        <OriginLocation LocationCode="KRR" />
        <DestinationLocation LocationCode="DLM" />
      </OriginDestinationInformation>
      <OriginDestinationInformation RPH="2">
        <DepartureDateTime>2016-09-02T12:00:00</DepartureDateTime>
        <DepartureWindow>00002359</DepartureWindow>
        <OriginLocation LocationCode="DLM" />
        <DestinationLocation LocationCode="KRR" />
      </OriginDestinationInformation>
      <TravelPreferences>
        <TPA_Extensions>
          <DiversityParameters AdditionalNonStopsNumber="10" />
        </TPA_Extensions>
      </TravelPreferences>
      <TravelerInfoSummary>
        <SeatsRequested>5</SeatsRequested>
        <AirTravelerAvail>
          <PassengerTypeQuantity Code="ADT" Quantity="3" />
          <PassengerTypeQuantity Age="8" Code="CNN" Quantity="2" />
        </AirTravelerAvail>
      </TravelerInfoSummary>
    </OTA_AirLowFareSearchRQ>
  </s:Body>

回答1:


You need to use the XOFares element:

<!--"Value" (required) Indicator for whether to return only fares with a passenger type the same as the passenger type specified in the request.-->
<!--Value="true" Returns only fares with a passenger type the same as the passenger type specified in the request.-->
<!--Value="false" (default) Uses standard Bargain Finder Max logic.-->
<XOFares Value="true"/>


来源:https://stackoverflow.com/questions/38761024/passenger-type-mismatch-in-search-request-and-response

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!