Sabre Webservices EnhancedAirBook with infant

时间:2018-05-27 02:16:17

标签: php web-services sabre sabredav

大家好我正在尝试创建一个PNR,我正在使用EnhancedAirBook + PassengerDetails此时我已经为ADT和ADT + CNN创建了PNR而没有任何问题,但是当我这样做但包含婴儿的EnhancedAirBook时返回此错误< strong> 收到指定的HaltOnStatus - 处理中止

在这种情况下我试图预订航班BCN MAD为1 ADT + 1 CNN + 1 INF

EnhancedAirBookRQ

<EnhancedAirBookRQ xmlns="http://services.sabre.com/sp/eab/v3_7" version="3.7.0" HaltOnError="false">
    <OTA_AirBookRQ>
      <RetryRebook Option="true"/>
      <HaltOnStatus Code="UC"/>
      <HaltOnStatus Code="US"/>
      <HaltOnStatus Code="NO"/>
      <OriginDestinationInformation>

      <FlightSegment DepartureDateTime="2018-06-12T11:00:00"  ArrivalDateTime="2018-06-12T12:25:00" FlightNumber="1101" NumberInParty="2" ResBookDesigCode="A" Status="NN">
        <DestinationLocation LocationCode="MAD" />
        <MarketingAirline Code="IB" FlightNumber="1101" />
        <OriginLocation LocationCode="BCN" />
      </FlightSegment>
      <FlightSegment DepartureDateTime="2018-06-16T09:30:00"  ArrivalDateTime="2018-06-16T10:45:00" FlightNumber="930" NumberInParty="2" ResBookDesigCode="A" Status="NN">
        <DestinationLocation LocationCode="BCN" />
        <MarketingAirline Code="IB" FlightNumber="930" />
        <OriginLocation LocationCode="MAD" />
      </FlightSegment>
      </OriginDestinationInformation>
      <RedisplayReservation NumAttempts="5" WaitInterval="2000"/>
    </OTA_AirBookRQ>
    <OTA_AirPriceRQ>
      <PriceRequestInformation Retain="true">
        <OptionalQualifiers>
          <PricingQualifiers>
            <PassengerType Code="ADT" Quantity="1" /><PassengerType Code="CNN" Quantity="1" /><PassengerType Code="INF" Force="true" Quantity="1" />
          </PricingQualifiers>
        </OptionalQualifiers>
      </PriceRequestInformation>
    </OTA_AirPriceRQ>
    <PostProcessing IgnoreAfter="false">
      <RedisplayReservation WaitInterval="500"/>
    </PostProcessing>
    <PreProcessing IgnoreBefore="false"/>
  </EnhancedAirBookRQ>

EnhancedAirBookRS

<EnhancedAirBookRS xmlns="http://services.sabre.com/sp/eab/v3_7">
        <ApplicationResults
            xmlns="http://services.sabre.com/STL_Payload/v02_01" status="Incomplete">
            <Error type="BusinessLogic" timeStamp="2018-05-26T12:01:57.688-05:00">
                <SystemSpecificResults>
                    <Message code="ERR.SP.HALT_ON_STATUS_RECEIVED">Specified HaltOnStatus Received - Processing Aborted</Message>
                </SystemSpecificResults>
            </Error>
        </ApplicationResults>
        <OTA_AirBookRS>
            <OriginDestinationOption>
                <FlightSegment ArrivalDateTime="06-12T12:25" DepartureDateTime="06-12T11:00" FlightNumber="1101" NumberInParty="002" ResBookDesigCode="A" Status="QF" eTicket="true">
                    <DestinationLocation LocationCode="MAD"/>
                    <MarketingAirline Code="IB" FlightNumber="1101"/>
                    <OriginLocation LocationCode="BCN"/>
                </FlightSegment>
                <FlightSegment ArrivalDateTime="06-16T10:45" DepartureDateTime="06-16T09:30" FlightNumber="0930" NumberInParty="002" ResBookDesigCode="A" Status="QF" eTicket="true">
                    <DestinationLocation LocationCode="BCN"/>
                    <MarketingAirline Code="IB" FlightNumber="0930"/>
                    <OriginLocation LocationCode="MAD"/>
                </FlightSegment>
            </OriginDestinationOption>
        </OTA_AirBookRS>
        <TravelItineraryReadRS>
            <RetryRebook Successful="false"/>
            <TravelItinerary>
                <CustomerInfo/>
                <ItineraryInfo>
                    <ReservationItems>
                        <Item RPH="1">
                            <FlightSegment AirMilesFlown="0301" ArrivalDateTime="06-12T12:25" DayOfWeekInd="2" DepartureDateTime="2018-06-12T11:00" ElapsedTime="01.25" eTicket="false" FlightNumber="1101" NumberInParty="02" ResBookDesigCode="O" SegmentNumber="0001" SmokingAllowed="false" SpecialMeal="false" Status="UC" StopQuantity="00" IsPast="false">
                                <DestinationLocation LocationCode="MAD" Terminal="TERMINAL 4" TerminalCode="4"/>
                                <Equipment AirEquipType="32A"/>
                                <MarketingAirline Code="IB" FlightNumber="1101"/>
                                <Meal Code="G"/>
                                <OriginLocation LocationCode="BCN" Terminal="TERMINAL 1" TerminalCode="1"/>
                                <SupplierRef ID="DCIB"/>
                                <UpdatedArrivalTime>06-12T12:25</UpdatedArrivalTime>
                                <UpdatedDepartureTime>06-12T11:00</UpdatedDepartureTime>
                            </FlightSegment>
                        </Item>
                        <Item RPH="2">
                            <FlightSegment AirMilesFlown="0301" ArrivalDateTime="06-16T10:45" DayOfWeekInd="6" DepartureDateTime="2018-06-16T09:30" ElapsedTime="01.15" eTicket="false" FlightNumber="0930" NumberInParty="02" ResBookDesigCode="O" SegmentNumber="0002" SmokingAllowed="false" SpecialMeal="false" Status="UC" StopQuantity="00" IsPast="false">
                                <DestinationLocation LocationCode="BCN" Terminal="TERMINAL 1" TerminalCode="1"/>
                                <Equipment AirEquipType="32A"/>
                                <MarketingAirline Code="IB" FlightNumber="0930"/>
                                <Meal Code="G"/>
                                <OriginLocation LocationCode="MAD" Terminal="TERMINAL 4" TerminalCode="4"/>
                                <SupplierRef ID="DCIB"/>
                                <UpdatedArrivalTime>06-16T10:45</UpdatedArrivalTime>
                                <UpdatedDepartureTime>06-16T09:30</UpdatedDepartureTime>
                            </FlightSegment>
                        </Item>
                    </ReservationItems>
                </ItineraryInfo>
                <ItineraryRef AirExtras="false" InhibitCode="U" PartitionID="AA" PrimeHostID="1S">
                    <Source PseudoCityCode="K3FJ"/>
                </ItineraryRef>
            </TravelItinerary>
        </TravelItineraryReadRS>
    </EnhancedAirBookRS>

我希望你能提供帮助,谢谢你的时间。

1 个答案:

答案 0 :(得分:0)

在您的请求中,我可以看到HaltOnStatus Code =&#34; UC&#34;,您实际上在两个段的响应中都有该状态(状态=&#34; UC&#34;)。

在这种情况下,航空公司似乎拒绝了这两个航班,可能是因为空间不足或任何其他原因。在这种情况下,您应该丢弃此行程。但是,有一个元素可以帮助预订QF状态的细分(这是一个特殊状态,不会从运营商处获取库存,也不会检查实际可用性),然后执行WPNCB,这将预订实际细分对于最便宜的服务类别中的给定选项。您可以使用RetryRebook Option =&#34; true&#34;在HaltOnStatus之前激活它。