首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Sabre java SOAP客户端

Sabre java SOAP客户端
EN

Stack Overflow用户
提问于 2016-01-31 01:20:17
回答 1查看 823关注 0票数 0

我正在尝试开发一个基于java SOAP的客户端,集成萨伯瑞(https://developer.sabre.com)酒店预订服务。当我尝试在SOAPUI中执行测试服务时,它总是失败并得到以下响应。

代码语言:javascript
复制
<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>677671ee-ed04-4bf2-bfcb-e12c54e6aad4@19</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>

有人能在这方面给我指点吗?

问候你,马尤兰

EN

回答 1

Stack Overflow用户

发布于 2016-01-31 05:24:28

您在呼叫SessionCreateRQ时提交的凭据(用户名、密码、组织、域)可能不正确。

确保这些值是正确的,并且您指向了适当的环境(通常您首先会获得客户验收测试环境的凭证:https://developer.sabre.com/docs/read/soap_basics/environments )

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35104674

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档