Sabre HotelRateDescription soap 调用失败,不理解错误消息或有什么问题?

Sabre HotelRateDescription soap call failing, don't understand error message or whats wrong?

我正在关注 docs here 中概述的示例 SOAP 请求。 (第二个:"Perform a stateless hotel rate description")

我不明白我做错了什么?在我看来,我的 SOAP 正文看起来与样本的格式相同,但我无法从错误消息中获得太多信息?

我的皂体是这样的:

<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <HotelRateDescriptionRQ Version="2.3.0" xmlns="http://webservices.sabre.com/sabreXML/2011/10">
        <AvailRequestSegment>
            <GuestCounts Count="1"></GuestCounts>
            <HotelSearchCriteria>
                <Criterion>
                    <HotelRef HotelCode="0014695"></HotelRef>
                </Criterion>
            </HotelSearchCriteria>
            <RatePlanCandidates>
                <RatePlanCandidate CurrencyCode="GBP" DCA_ProductCode="SUPHFH"></RatePlanCandidate>
            </RatePlanCandidates>
            <TimeSpan End="01-13" Start="01-12"></TimeSpan>
        </AvailRequestSegment>
    </HotelRateDescriptionRQ>
</s:Body>

响应正文是这样的:

<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="2017-01-04T05:43:02-06:00">
                <stl:SystemSpecificResults>
                    <stl:Message code="0">VERIFY FORMAT</stl:Message>
                    <stl:ShortText>ERR.SWS.HOST.ERROR_IN_RESPONSE</stl:ShortText>
                </stl:SystemSpecificResults>
            </stl:Error>
        </stl:ApplicationResults>
    </HotelRateDescriptionRS>
</soap-env:Body>

HotelRateDescriptionLLSRQ 是一种低级服务,这意味着它在幕后 运行 是一个本地 Sabre 命令。当服务显示 VERIFY FORMAT 时,它并不意味着 XML 格式,而是 运行 的 Sabre 格式(主机命令)。

在这种特殊情况下,它似乎与未为您启用独立的 HRD 功能有关。如果您想启用此功能,您需要联系您的 Sabre 客户代表。

否则,您将需要发出一个简单的 HRD 请求,指定您希望从之前的 HotelPropertyDescriptionLLSRQ 调用中显示的房价的行号。

这是它的样子:

<AvailRequestSegment>
    <RatePlanCandidates>
        <RatePlanCandidate RPH="3" />
    </RatePlanCandidates>
</AvailRequestSegment>

希望您觉得这有用!

B运行o。

您好,我正在使用 saber 并使用 sabre 创建一个用于酒店预订的大型应用程序。您对 "HotelRateDescriptionRQ" 的示例请求如下所示。我不会在这里分享回复,但我相信这个请求适合你。

<?xml version="1.0"?>
-<HotelRateDescriptionRQ Version="2.3.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 -<AvailRequestSegment xmlns="http://webservices.sabre.com/sabreXML/2011/10">
  -<RatePlanCandidates>
      <RatePlanCandidate RPH="001"/>
    </RatePlanCandidates>
   </AvailRequestSegment>
 </HotelRateDescriptionRQ>

示例响应如下所示

<?xml version="1.0"?>
-<HotelRateDescriptionRS Version="2.3.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 -<ApplicationResults xmlns="http://services.sabre.com/STL/v01" status="Complete">   
     <Success timeStamp="2017-03-10T11:34:37+05:30"/>    
  </ApplicationResults>
 -<RoomStay xmlns="http://webservices.sabre.com/sabreXML/2011/10">...

您还可以使用提供所有房价详细信息的属性描述请求。

<?xml version="1.0"?>
-<HotelPropertyDescriptionRQ Version="2.3.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    -<AvailRequestSegment xmlns="http://webservices.sabre.com/sabreXML/2011/10">
        <GuestCounts Count="1"/>
        -<HotelSearchCriteria>
        -<Criterion>        
            <HotelRef HotelCode="0015309"/>
        </Criterion>
        </HotelSearchCriteria>
        -<RatePlanCandidates>
            <ContractNegotiatedRateCode>WKH</ContractNegotiatedRateCode>
            <RateRange CurrencyCode="USD"/>
        </RatePlanCandidates>
        <TimeSpan Start="03-23" End="03-24"/>
    </AvailRequestSegment>
</HotelPropertyDescriptionRQ>