首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >errors.authentication.USG_AUTHENTICATION_FAILED :AuthenticationException

errors.authentication.USG_AUTHENTICATION_FAILED :AuthenticationException
EN

Stack Overflow用户
提问于 2016-10-18 15:02:30
回答 2查看 741关注 0票数 1

下面是我作为SessionCreateRQ的一部分发送给https://sws3-crt.cert.sabre.com的请求。但我收到了

errors.authentication.USG_AUTHENTICATION_FAILED :AuthenticationException

回应。我在我的档案里找不到IPCC。所以我在组织标签中提到了“IPCC”。组织标签应该包含正确的IPCC才能得到认证吗?

注意:我已经分别用'xxxxxxxxxx‘和'yyyyyyyyyy’替换了我的实际用户名和密码。

请求:

代码语言:javascript
复制
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Header>
        <eb:MessageHeader SOAP-ENV:mustUnderstand="1" eb:version="1.0">
            <eb:ConversationId>support@sabre.com</eb:ConversationId>
            <eb:From>
                <eb:PartyId type="urn:x12.org:IO5:01">999999</eb:PartyId>
            </eb:From>
            <eb:To>
                <eb:PartyId type="urn:x12.org:IO5:01">123123</eb:PartyId>
            </eb:To>
            <eb:CPAId>IPCC</eb:CPAId>
            <eb:Service eb:type="OTA">SessionCreateRQ</eb:Service>
            <eb:Action>SessionCreateRQ</eb:Action>
            <eb:MessageData>
                <eb:MessageId>1000</eb:MessageId>
                <eb:Timestamp>2016-10-18T14:35:19Z</eb:Timestamp>
                <eb:TimeToLive>2016-10-18T14:35:19Z</eb:TimeToLive>
            </eb:MessageData>
        </eb:MessageHeader>
        <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
            <wsse:UsernameToken> 
                <wsse:Username>xxxxxxxxxx</wsse:Username>
                <wsse:Password>yyyyyyyyyy</wsse:Password>
                <Organization>IPCC</Organization>
                <Domain>DEFAULT</Domain> 
            </wsse:UsernameToken>
        </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <eb:Manifest SOAP-ENV:mustUnderstand="1" eb:version="1.0">
            <eb:Reference xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="cid:rootelement" xlink:type="simple"/>
        </eb:Manifest>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

响应:

代码语言: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>support@sabre.com</eb:ConversationId>
         <eb:Service eb:type="OTA">SessionCreateRQ</eb:Service>
         <eb:Action>ErrorRS</eb:Action>
         <eb:MessageData>
            <eb:MessageId>2900801526094550610</eb:MessageId>
            <eb:Timestamp>2016-10-18T14:36:49</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

回答 2

Stack Overflow用户

发布于 2016-10-18 16:09:50

拥有IPCC是必须的,以便通过SOAP创建会话。

我猜您目前在DevStudio上创建帐户时获得了测试凭据,这将只允许您使用REST在CERT上进行测试。

票数 1
EN

Stack Overflow用户

发布于 2016-10-19 20:08:22

当您注册到Dev时,您只能访问测试环境中的REST。

为了访问SOAP,您可以通过:https://developer.sabre.com/contact或webservices.support@sabre.com联系

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

https://stackoverflow.com/questions/40111756

复制
相关文章

相似问题

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