2016-01-30 156 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