2016-01-30 150 views
0

我正在嘗試開發一個基於java SOAP的客戶端,它集成了Sabre(https://developer.sabre.com)酒店預訂服務。當我嘗試在SOAPUI中執行測試服務時,它總是失敗並獲得以下響應。Saber java SOAP客戶端

<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">123123</eb:PartyId> 
     </eb:From> 
     <eb:To> 
      <eb:PartyId eb:type="URI">999999</eb:PartyId> 
     </eb:To> 
     <eb:CPAId>ipcc</eb:CPAId> 
     <eb:ConversationId>conversationID</eb:ConversationId> 
     <eb:Service eb:type="OTA">SessionCreateRQ</eb:Service> 
     <eb:Action>ErrorRS</eb:Action> 
     <eb:MessageData> 
      <eb:MessageId>[email protected]</eb:MessageId> 
      <eb:Timestamp>2016-01-30T16:50:15</eb:Timestamp> 
      <eb:RefToMessageId>1000</eb:RefToMessageId> 
     </eb:MessageData> 
     </eb:MessageHeader> 
     <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"/> 
    </soap-env:Header> 
    <soap-env:Body> 
     <soap-env:Fault> 
     <faultcode>soap-env:Client.AuthenticationFailed</faultcode> 
     <faultstring>Authentication failed</faultstring> 
     <detail> 
      <StackTrace>com.sabre.universalservices.base.security.AuthenticationException: errors.authentication.USG_AUTHENTICATION_FAILED</StackTrace> 
     </detail> 
     </soap-env:Fault> 
    </soap-env:Body> 
</soap-env:Envelope> 

任何人都可以指導我呢?

問候, Mayuran

回答

3

看起來你在調用SessionCreateRQ提交的可能是不正確的憑據(用戶名,密碼,組織,域)。

確保值是正確的,你都指向適當的環境(你通常先得到客戶驗收測試環境的憑據:https://developer.sabre.com/docs/read/soap_basics/environments

+0

有效,改變了我的憑據不正確的值後,用SessionCreateRQ ,我得到完全相同的錯誤,所以你可能想用Saber來驗證它們。 您可以使用此表格聯繫Saber: https://developer.sabre.com/contact 或通過電子郵件發送給[email protected] – fcarreno

+0

感謝您的回答。看起來我們需要在調用SOAP服務之前獲得正確的許可證 – Mayuran