0

我正在尝试使用 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。

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

谢谢

4

1 回答 1

0

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

无论如何,从酒店价格描述服务的描述中:

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)。

于 2015-12-11T16:17:17.310 回答