2017-05-18 30 views
0

請找到下面的響應,而在肥皂呼籲書裏面我得到任何一個可以解釋我的完整的佩劍航空訂票流程後,我們得到的搜索結果

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> 
       <soap-env:Header> 
        <eb:MessageHeader eb:version="1.0" soap-env:mustUnderstand="1" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader"> 
        <eb:From> 
         <eb:PartyId eb:type="URI">Sabre</eb:PartyId> 
        </eb:From> 
        <eb:To> 
         <eb:PartyId eb:type="URI">Traform</eb:PartyId> 
        </eb:To> 
        <eb:CPAId>VJ6I</eb:CPAId> 
        <eb:ConversationId>TraformConversationId</eb:ConversationId> 
        <eb:Service eb:type="OTA">OTA_AirBookRQ</eb:Service> 
        <eb:Action>ErrorRS</eb:Action> 
        <eb:MessageData> 
         <eb:MessageId>2851813190937520610</eb:MessageId> 
         <eb:Timestamp>2017-05-18T05:18:13</eb:Timestamp> 
         <eb:RefToMessageId>TraformMessage</eb:RefToMessageId> 
        </eb:MessageData> 
        </eb:MessageHeader> 
        <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> 
        <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">T1RLAQJjFvduEm77D3CMjwxPjYk6gM1h1hByCnRdGipBRXTeqMsCcruqAACwOycU0Ymu010+D+Zc4NZNAVrusbm2wnNtL9eR8rbRZQqrb+HGaWtR/lFTOfm9ycPWkiZjyJi2AyaDn45OKyheGfdu5a0Nt+B4U5Ni07YJhLy+F5YNBfQEsP20ETKOYj2vRvWoS+U28A8lwtfpRaBI5GRkHQxnwebWIvPusHxCt7PxYDZ6P1x1vcMnPsefuxjJiHsPnXwL+YTi87sjTDp6vEwJKMb91I3/gnUtfGr17VE*</wsse:BinarySecurityToken> 
        </wsse:Security> 
       </soap-env:Header> 
       <soap-env:Body> 
        <soap-env:Fault> 
        <faultcode>soap-env:Client.AuthorizationFailed</faultcode> 
        <faultstring>Authorization failed</faultstring> 
        <detail> 
         <StackTrace>com.sabre.universalservices.base.security.AuthorizationException: errors.authorization.USG_AUTHORIZATION_FAILED</StackTrace> 
        </detail> 
        </soap-env:Fault> 
       </soap-env:Body> 
      </soap-env:Envelope> 

回答

0

流程簡單歸結爲至少(我ommit可能需要針對特定​​的客戶交易):

- CreateSessionRQ - which opens new session on which you'll be working on. Also, you'll get secuity token, which you should put in every following request 
- AirBookRQ - in which you provide specific details of selected flight (tlcs, dates, booking classes, etc). This transactions update session you created in CreateSessionRQ. 
- AirPriceRQ - This is used in order to get price details for selected itinerary (and must be invoked AFTER the AirBookRQ) 

**Both AirBookRQ and AirPriceRQ** can be passed to Sabre in one XML in transaction which is called EnhancedAirBookRQ 

- PassengerDetailsRQ - which groups several different transactions and aims to update reservation with all passenger details (names, date of birth, bought extra services, meals). Don't forget to include EndTransactionRQ in this request - otherwise passed data won't be saved in PNR 
- AirTicketRQ - which is used for tickets issueing 

這只是一個很簡單的概述 - 我expierience告訴我,你可以在整合過程中遇到的一些問題,因爲額外的交易可能需要您特定的客戶端/流量,但它顯示現在對你來說會更容易一點。

+0

謝謝djaszczurowski。 –

+0

嗨djaszczurowski, 我使用休息API執行搜索https://api.test.sabre.com/InstaFlights搜索 我收到搜索結果的價格,我想預訂一個特定的航班,我從上述休息中收到呼叫,然後我執行下面的 SessionCreateRQ(創建會話令牌)得到會話令牌 EnhancedAirBookRQ(這包含2部分OTA_AirBookRQ和OTA_AirPriceRQ)可以省略OTA_AirPriceRQ,因爲我已經知道價格並去PassengerDetailsRQ然後AirTicketRQ?請諮詢 –

+0

不可以,因爲您需要OTA_AirPriceRq才能在AAA中存儲定價細節(PriceRequestInformation節點中的'Retain =「true」標誌 - ,請瀏覽https://developer.sabre.com/docs/read/ soap_apis /空氣/電子書/ price_air_itinerary) – djaszczurowski

相關問題