首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >EnhancedAirBookRQ上的身份验证错误

EnhancedAirBookRQ上的身份验证错误
EN

Stack Overflow用户
提问于 2016-11-08 12:09:00
回答 1查看 416关注 0票数 0

我用BinarySecurityToken表示EnhancedAirBookRQ,但我接收USG_AUTHORIZATION_FAILED。我在BargainFinderMaxRQ中使用了相同的标记,而且它起了作用。我是否应该为提供的这里序列获得另一组测试凭据?

请求:

代码语言:javascript
运行
复制
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
              xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext"
              xmlns:mes="http://www.ebxml.org/namespaces/messageHeader"
              xmlns:ns="http://www.opentravel.org/OTA/2003/05">
<soapenv:Header>
    <sec:Security>
        <sec:BinarySecurityToken>--Token--</sec:BinarySecurityToken>
    </sec:Security>
    <mes:MessageHeader>
        <mes:From>
            <mes:PartyId type="urn:x12.org:IO5:01">from</mes:PartyId>
        </mes:From>
        <mes:To>
            <mes:PartyId type="urn:x12.org:IO5:01">ws</mes:PartyId>
        </mes:To>
        <mes:CPAId>--CPAId--</mes:CPAId>
        <mes:ConversationId>eservices@sabre.com</mes:ConversationId>
        <mes:Service mes:type="sabreXML">sabreXML</mes:Service>
        <mes:Action>EnhancedAirBookRQ</mes:Action>
        <mes:MessageData>
            <mes:MessageId>00000</mes:MessageId>
            <mes:Timestamp>233</mes:Timestamp>
        </mes:MessageData>
        <mes:Description xml:lang="en-US">Testing</mes:Description>
    </mes:MessageHeader>
</soapenv:Header>
<soapenv:Body>
    <EnhancedAirBookRQ version="3.7.0" HaltOnError="true">
        <OTA_AirBookRQ>
            <OriginDestinationInformation>
                <FlightSegment DepartureDateTime="2016-11-15T10:05:00" FlightNumber="241" NumberInParty="2"
                               ResBookDesigCode="F" Status="NN">
                    <DestinationLocation LocationCode="ATL"/>
                    <MarketingAirline Code="US" FlightNumber="241"/>
                    <OriginLocation LocationCode="LAS"/>
                </FlightSegment>
            </OriginDestinationInformation>
        </OTA_AirBookRQ>
    </EnhancedAirBookRQ>
</soapenv:Body>

响应:

代码语言: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">ws</eb:PartyId>
        </eb:From>
        <eb:To>
            <eb:PartyId eb:type="URI">from</eb:PartyId>
        </eb:To>
        <eb:CPAId>--CPAId--</eb:CPAId>
        <eb:ConversationId>eservices@sabre.com</eb:ConversationId>
        <eb:Service eb:type="sabreXML">sabreXML</eb:Service>
        <eb:Action>ErrorRS</eb:Action>
        <eb:MessageData>
            <eb:MessageId>2308814425665870610</eb:MessageId>
            <eb:Timestamp>2016-11-08T11:49:26</eb:Timestamp>
            <eb:RefToMessageId>00000</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">--Token--</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>

EN

回答 1

Stack Overflow用户

发布于 2016-11-08 22:02:11

你们有API协议吗?看来您的凭据没有使用该服务的批准授权。

如果你有合同,我建议你联系服务台,这样他们就可以修改你的证件了。

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

https://stackoverflow.com/questions/40486580

复制
相关文章

相似问题

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