2017-05-18 25 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あなたは統合時にいくつかの問題が発生する可能性があることを私に伝え、追加のトランザクションがあなたのために必要な場合がありますので、特定のクライアント/フローですが、 uldはあなたのために少し簡単になりました。

+0

ありがとうdjaszczurowski。 –

+0

djaszczurowskiこんにちは、 私は残りのAPIを使用して検索を実行するhttps://api.test.sabre.com/InstaFlights検索 私は価格で、検索結果を受け取ったと私は上記の残りの部分から受信した特定のフライトを予約したいですセッショントークンを取得しました EnhancedAirBookRQ(これは2部のOTA_AirBookRQとOTA_AirPriceRQを含んでいます)私はすでに価格を知っているので、OTA_AirPriceRQを省略してPassengerDetailsRQとAirTicketRQの2つに分けることができますか?アドバイス –

+0

いいえ、AARに価格の詳細を格納するためにOTA_AirPriceRqが必要なため、できません(PriceRequestInformationノードの 'Retain =" true "'フラグ - https://developer.sabre.com/docs/read/を参照してください)。 soap_apis/air/book/price_air_itinerary) – djaszczurowski

0

セイバーDevStudioの中で定義されたいくつかの簡単なワークフローがあります。あなたが取得している実際のエラーについて

​​

https://developer.sabre.com/docs/read/workflows/Book_Air_Segment

。私はそれが許可されていないサービスでセッションレスのトークンを使用することによると信じています。 SessionCreateRQを使用してBSTを要求する必要があります。