PassengerDetailsRQ往返

时间:2016-08-28 16:00:25

标签: php soap sabre

我们正在努力在我们的系统中集成API。我们已经在单向行程中做得很好并且成功生成了PNR但我们在PassengerDetailsRQ上进行了往返行程。我确信BargainFinderMaxRQ对于往返是正确的,但我们也对EnhancedAirBookRQ感到困惑。所以,我在这里附加了EnhancedAirBookRQ和PassengerDetailsRQ。希望军刀提供一些帮助。

EnhancedAirBookRQ:

<EnhancedAirBookRQ xmlns="http://services.sabre.com/sp/eab/v3_2" HaltOnError="false" version="3.2.0">
      <OTA_AirBookRQ>
        <HaltOnStatus Code="UC"/>
        <HaltOnStatus Code="LL"/>
        <HaltOnStatus Code="UN"/>
        <HaltOnStatus Code="NO"/>
        <HaltOnStatus Code="HL"/>
        <OriginDestinationInformation>
          <FlightSegment DepartureDateTime="2016-09-02T09:50:00" FlightNumber="263" NumberInParty="1" ResBookDesigCode="O" Status="NN">
            <DestinationLocation LocationCode="DEL"/>
            <MarketingAirline Code="9W" FlightNumber="263"/>
            <OperatingAirline Code="9W"/>
            <OriginLocation LocationCode="KTM"/>
          </FlightSegment>
          <FlightSegment DepartureDateTime="2016-09-22T13:45:00" FlightNumber="260" NumberInParty="1" ResBookDesigCode="S" Status="NN">
            <DestinationLocation LocationCode="KTM"/>
            <MarketingAirline Code="9W" FlightNumber="260"/>
            <OperatingAirline Code="9W"/>
            <OriginLocation LocationCode="DEL"/>
          </FlightSegment>
        </OriginDestinationInformation>
      </OTA_AirBookRQ>
      <OTA_AirPriceRQ>
        <PriceRequestInformation Retain="true">
          <OptionalQualifiers>
            <PricingQualifiers>
              <PassengerType Code="ADT" Quantity="1"/>
            </PricingQualifiers>
          </OptionalQualifiers>
        </PriceRequestInformation>
      </OTA_AirPriceRQ>
      <PostProcessing IgnoreAfter="false">
        <RedisplayReservation WaitInterval="2000"/>
      </PostProcessing>
      <PreProcessing IgnoreBefore="false"/>
    </EnhancedAirBookRQ>

PassengerDetailsRQ:

 <PassengerDetailsRQ xmlns="http://services.sabre.com/sp/pd/v3_1" version="3.1.0">
      <MiscSegmentSellRQ>
        <MiscSegment DepartureDateTime="09-02" NumberInParty="1" Status="NN" Type="OTH">
          <OriginLocation LocationCode="KTM"/>
          <Text>RETENTION SEGMENT</Text>
          <VendorPrefs>
            <Airline Code="9W"/>
          </VendorPrefs>
        </MiscSegment>
        <MiscSegment DepartureDateTime="09-22" NumberInParty="1" Status="NN" Type="OTH">
          <OriginLocation LocationCode="DEL"/>
          <Text>RETENTION SEGMENT</Text>
          <VendorPrefs>
            <Airline Code="9W"/>
          </VendorPrefs>
        </MiscSegment>
      </MiscSegmentSellRQ>
      <PostProcessing>
        <EndTransactionRQ>
          <EndTransaction Ind="true"/>
          <Source ReceivedFrom="TARA TESTING"/>
        </EndTransactionRQ>
      </PostProcessing>
      <PriceQuoteInfo>
        <Link NameNumber="1.1" Record="1"/>
      </PriceQuoteInfo>
      <SpecialReqDetails>
        <AddRemarkRQ>
          <RemarkInfo>
            <FOP_Remark Type="CASH"/>
            <Remark Type="General">
              <Text>TEST GENERAL REMARK</Text>
            </Remark>
          </RemarkInfo>
        </AddRemarkRQ>
        <SpecialServiceRQ>
          <SpecialServiceInfo>
            <SecureFlight SegmentNumber="A" SSR_Code="DOCS">
              <PersonName DateOfBirth="1990-02-07" Gender="M" NameNumber="1.1">
                <GivenName>Kiran</GivenName>
                <Surname>Subedi</Surname>
              </PersonName>
              <VendorPrefs>
                <Airline Hosted="false"/>
              </VendorPrefs>
            </SecureFlight>
          </SpecialServiceInfo>
        </SpecialServiceRQ>
      </SpecialReqDetails>
      <TravelItineraryAddInfoRQ>
        <AgencyInfo>
          <Address>
            <AddressLine>TARA TRAVEL</AddressLine>
            <CityName>Kathmandu</CityName>
            <CountryCode>NP</CountryCode>
            <PostalCode>977</PostalCode>
            <StateCountyProv StateCode="KTM"/>
            <StreetNmbr>3150 DDDD DRIVE</StreetNmbr>
          </Address>
          <Ticketing TicketType="7TAW"/>
        </AgencyInfo>
        <CustomerInfo>
          <ContactNumbers>
            <ContactNumber LocationCode="KTM" NameNumber="1.1" Phone="9846231634" PhoneUseType="H"/>
          </ContactNumbers>
          <Email Address="subedikiran41@gmail.com" NameNumber="1.1"/>
          <PersonName NameNumber="1.1" PassengerType="ADT">
            <GivenName>Kiran</GivenName>
            <Surname>Subedi</Surname>
          </PersonName>
        </CustomerInfo>
      </TravelItineraryAddInfoRQ>
    </PassengerDetailsRQ>

2 个答案:

答案 0 :(得分:0)

您可以从“PassengerDetailsRQ”中删除“MiscSegmentSellRQ”,它会对您有所帮助。

答案 1 :(得分:0)

MiscSegment不需要完成PNR,但是行程是。

您是不是先进行EnhancedAirBook呼叫(预订航班并将其包含在行程中),然后(使用相同的BinarySecurityToken)调用PassengerDetails?顺便说一句,对PassengerDetails的调用并不需要知道你的行程是往返还是单行...