我正在尝试使用 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。
我的请求负载中可能出现什么问题?
谢谢