【问题标题】:Sabre Hotel Rate Description RequestSabre 酒店价格说明请求
【发布时间】:2015-12-11 09:10:15
【问题描述】:

我正在尝试使用 Sabre SOAP API 获取酒店房价描述。但是我遇到了无法调试的错误。

我的请求负载是

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader">
    <SOAP-ENV:Header>
        <eb:MessageHeader SOAP-ENV:mustUnderstand="0">
            <eb:From>
                <eb:PartyId eb:type="urn:x12.org:IO5:01">from</eb:PartyId>
            </eb:From>
            <eb:To>
                <eb:PartyId eb:type="urn:x12.org:IO5:01">ws</eb:PartyId>
            </eb:To>
            <eb:CPAId>{{CPAID}}</eb:CPAId>
            <eb:ConversationId>pricedrop</eb:ConversationId>
            <eb:Service eb:type="sabreXML"></eb:Service>
            <eb:Action>HotelRateDescriptionLLSRQ</eb:Action>
        </eb:MessageHeader>
        <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
            <wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">
<!--                  Use Security token from Authentication Request  -->
            Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/CERTG!ICESMSLB\/CRT.LB!-3460256494356271327!1683974!0
            </wsse:BinarySecurityToken>
        </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <HotelRateDescriptionRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.3.0">
        <AvailRequestSegment>
        <GuestCounts Count="1"/>
        <HotelSearchCriteria>
        <Criterion>
        <HotelRef HotelCode="0017804"/>
        </Criterion>
        </HotelSearchCriteria>
        <RatePlanCandidates>
        <RatePlanCandidate CurrencyCode="USD" DCA_ProductCode="A1B2C3D"/>
        </RatePlanCandidates>
        <TimeSpan End="12-28" Start="12-25"/>
        </AvailRequestSegment>
        </HotelRateDescriptionRQ>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

但我收到 1VERIFY FORMAT 错误。回复如下。

<soap-env:Body>
        <HotelRateDescriptionRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:stl="http://services.sabre.com/STL/v01" Version="2.3.0">
            <stl:ApplicationResults status="NotProcessed">
                <stl:Error type="BusinessLogic" timeStamp="2015-12-11T03:01:21-06:00">
                    <stl:SystemSpecificResults>
                        <stl:Message>1VERIFY FORMAT                                                 </stl:Message>
                        <stl:ShortText>ERR.SWS.HOST.ERROR_IN_RESPONSE</stl:ShortText>
                    </stl:SystemSpecificResults>
                </stl:Error>
            </stl:ApplicationResults>
        </HotelRateDescriptionRS>
    </soap-env:Body>

除了我不理解的 DCA_ProductCode 之外,我在请求负载中的所有值似乎都是正确的。 Sabre 文档也没有过多解释 DCA_ProductCode。

我的请求负载中可能出现什么问题?

谢谢

【问题讨论】:

    标签: soap rate sabre


    【解决方案1】:

    我不确定soap标头中CPAId元素的值{{CPAID}}是否有效(除非这是对变量的引用或者您以某种方式对其进行了屏蔽)-通常您会在那里提交您的IPCC。

    无论如何,从 Hotel Rate Description 服务的描述来看:

    https://developer.sabre.com/docs/read/soap_apis/hotel/search/hotel_rate_description

    “请注意,默认情况下,用户无法使用包含在 HotelRateDescriptionLLSRQ 中的独立 HRD,i-HRD 功能。i-HRD 不需要基于来自 HotelPropertyDescriptionLLSRQ 响应的费率查询。为了使用此功能,授权是需要。请联系您的销售代表了解更多详情。”

    似乎需要先激活该功能。 您可以通过 webservices.support@sabre.com 联系 Sabre Web 服务支持团队 - 并要求激活 iHRD。

    您需要提供您的 IPCC 和您正在使用的 Sabre Web 服务环境 (CERT / PROD)。

    【讨论】:

    • fcarreno:我们将 {{CPAID}} 替换为从 Sabre 获得的那个。问题中的安全令牌在我发布问题时也是有效的。
    • 感谢 Gagan - 如果您启用了 iHRD 功能,那么您应该能够从服务中获得有效的响应。
    • 我如何知道帐户是否启用了 iHRD 功能?我目前使用的帐户是由我的客户创建的。
    • 您可以让您的客户执行 Sabre 命令 HIP*(在 Sabre 旅行社屏幕上)。响应将类似于此(在下一行查找 INDEPENDENT HRD 及其状态): ...INDEPENDENT HRD ON... 或使用 SabreCommand(SOAP 服务)并执行相同操作:developer.sabre.com/docs/read/soap_apis/management/utility/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 2013-12-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多