佩刀酒店价格描述肥皂调用失败,不明白错误消息或有什么问题?



我正在遵循此处文档中概述的示例 SOAP 请求。(第二个:"执行无状态酒店价格描述")

我不明白我做错了什么?我的 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 命令。当服务显示"验证格式"时,它不是指 XML 格式,而是正在运行的 Sabre 格式(主机命令)。

在此特定方案中,它似乎与未为您启用独立的 HRD 功能有关。如果您想启用此功能,则需要联系您的 Sabre 客户代表。

否则,您需要发出一个简单的 HRD 请求,指定要从以前的 HotelPropertyDescriptionLLSRQ 调用中显示的费率的行号。

这是它的外观:

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

希望你觉得这有用!

布鲁诺。

嗨,

我正在使用 Sabre 并为使用 Sabre 预订酒店创建一个大型应用程序。 您对"酒店价格描述RQ"的示例请求如下所示。我不是在这里分享回应,但我相信这个请求对你有用。

<?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>

最新更新