军刀搜索 PNR

本文关键字:PNR 搜索 军刀 | 更新日期: 2023-09-27 18:32:57

我已经在开发中使用 SoapUI 项目进行了一些测试,但是当我尝试执行 Trip_Search API 时,我只能通过名称标准和视图 TripSearchTN 获取 PNR 号码,如果我使用其他条件或视图,它不起作用。

另外,回复只是PNR号码,我没有得到行程信息,

你能帮我弄清楚我做错了什么吗?

谢谢

请求:

<Trip_SearchRQ Version="4.2.0" EchoToken="ECHO" xmlns="http://webservices.sabre.com/triprecord">
  <ReadRequests>
    <ReservationReadRequest>
        <NameCriteria>
        <Name>
          <FirstName MatchMode="EXACT">DLC</FirstName>
          <LastName MatchMode="SIMILAR">TEST</LastName>
        </Name>
      </NameCriteria>
      <PosCriteria AirlineCode="AA">
        <Pcc>ipcc</Pcc>
      </PosCriteria>
      <ReturnOptions MaxItemsReturned="200" ResponseFormat="STL" ViewName="TripSearchTN"/>
    </ReservationReadRequest>
  </ReadRequests>
</Trip_SearchRQ>

响应:

<Trip_SearchRS EchoToken="ECHO" TimeStamp="2016-01-29T17:50:48" Target="Test" Version="4.2.0" xmlns="http://webservices.sabre.com/triprecord" xmlns:ns9="http://www.sabre.com/ssg/des/v1" xmlns:ns5="http://tds.sabre.com/rules" xmlns:ns12="http://www.sabre.com/eps/schemas" xmlns:ns13="http://tds.sabre.com/distribution" xmlns:ns6="http://tds.sabre.com/itinerary" xmlns:ns7="http://services.sabre.com/STL_Header/v02_00" xmlns:ns10="http://www.OpenTravel.org/ns/OTA2/AppInfo_v01_00" xmlns:ns8="http://services.sabre.com/STL/v02" xmlns:ns11="http://opentravel.org/common/v02" xmlns:ns2="http://services.sabre.com/STL/v01" xmlns:ns4="http://webservices.sabre.com/sabreXML/2003/07" xmlns:ns3="http://webservices.sabre.com/pnrbuilder">
         <Success>Success</Success>
         <ReservationsList NumberResults="3" NumberPages="1" TotalResults="3">
            <Reservations>
               <Reservation Locator="OQGCOA">
                  <ns3:GetReservationRS>
                     <ns3:Reservation>
                        <ns3:BookingDetails>
                           <ns3:RecordLocator>OQGCOA</ns3:RecordLocator>
                           <ns3:CreationTimestamp>2016-01-29T09:40:00</ns3:CreationTimestamp>
                        </ns3:BookingDetails>
                        <ns3:POS>
                           <ns3:Source PseudoCityCode="ipcc" AirlineVendorID="AA"/>
                        </ns3:POS>
                        <ns3:PassengerReservation/>
                     </ns3:Reservation>
                  </ns3:GetReservationRS>
               </Reservation>
               <Reservation Locator="VVFMOE">
                  <ns3:GetReservationRS>
                     <ns3:Reservation>
                        <ns3:BookingDetails>
                           <ns3:RecordLocator>VVFMOE</ns3:RecordLocator>
                           <ns3:CreationTimestamp>2016-01-28T09:05:00</ns3:CreationTimestamp>
                        </ns3:BookingDetails>
                        <ns3:POS>
                           <ns3:Source PseudoCityCode="ipcc" AirlineVendorID="AA"/>
                        </ns3:POS>
                        <ns3:PassengerReservation/>
                     </ns3:Reservation>
                  </ns3:GetReservationRS>
               </Reservation>
               <Reservation Locator="VVGNID">
                  <ns3:GetReservationRS>
                     <ns3:Reservation>
                        <ns3:BookingDetails>
                           <ns3:RecordLocator>VVGNID</ns3:RecordLocator>
                           <ns3:CreationTimestamp>2016-01-28T09:07:00</ns3:CreationTimestamp>
                        </ns3:BookingDetails>
                        <ns3:POS>
                           <ns3:Source PseudoCityCode="ipcc" AirlineVendorID="AA"/>
                        </ns3:POS>
                        <ns3:PassengerReservation/>
                     </ns3:Reservation>
                  </ns3:GetReservationRS>
               </Reservation>
            </Reservations>
         </ReservationsList>
      </Trip_SearchRS>

军刀搜索 PNR

尝试将ReturnOptions's ViewName属性更改为 FULL

<ReturnOptions ViewName="FULL" ...