我正在使用Bargain Finder Max Saber SOAP方法,我总是得到响应版本已被弃用,但我指定了请求版本=" 3.4.0"和ResponseVersion =" 3.4.0"。
我的要求:
<?xml version="1.0" encoding="UTF-8"?>
<OTA_AirLowFareSearchRQ xmlns="http://www.opentravel.org/OTA/2003/05" Target="Test" Version="3.4.0" ResponseType="OTA" ResponseVersion="3.4.0">
<POS>
<Source PseudoCityCode="xxxx">
<RequestorID Type="1" Instance="1" ID="1" />
</Source>
</POS>
<OriginDestinationInformation RPH="1">
<DepartureDateTime>2018-01-15T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="YYZ" />
<DestinationLocation LocationCode="SDQ" />
</OriginDestinationInformation>
<OriginDestinationInformation RPH="2">
<DepartureDateTime>2018-01-18T00:00:00</DepartureDateTime>
<OriginLocation LocationCode="SDQ" />
<DestinationLocation LocationCode="YYZ" />
</OriginDestinationInformation>
<TravelerInfoSummary>
<AirTravelerAvail>
<PassengerTypeQuantity Code="ADT" Quantity="1" />
</AirTravelerAvail>
<PriceRequestInformation CurrencyCode="USD" />
</TravelerInfoSummary>
<TPA_Extensions>
<IntelliSellTransaction>
<RequestType Name="50ITIN" />
</IntelliSellTransaction>
</TPA_Extensions>
</OTA_AirLowFareSearchRQ>
响应:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header />
<SOAP-ENV:Body>
<OTA_AirLowFareSearchRS xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.0">
<Errors>
<Error Type="SRV.DRE" Code="REQ.FLR" ShortText="dre request failed" />
<Error Type="IF2" Code="PROCESS" ShortText="PROCESSING ERROR DETECTED" />
<Error Type="MAIN" Code="DEPRECATEDRS" ShortText="This response version is deprecated and will be decommissioned once a newer version is released." />
<Error Type="WORKERTHREAD" Code="TRANSACTIONID" ShortText="6572224660929009932" />
<Error Type="SERVER" Code="TTFHLC850" ShortText="27042" />
<Error Type="ERR" Code="ERR" ShortText="Error during Processing" />
</Errors>
</OTA_AirLowFareSearchRS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
感谢您的帮助。
答案 0 :(得分:0)
请求缺少“RequestorID”下的公司名称。该元素应以具体值存档。
请求中预期:
<POS>
<Source PseudoCityCode="xxxx">
<RequestorID Type="1" Instance="1" ID="1">
<CompanyName Code="TN"/>
</RequestorID>
</Source>
</POS>
由于请求中没有此元素“CompanyName”,因此事务失败,默认响应version =“1.0”并返回警告,说明该版本已弃用。这是正在审查的内容,以提高,但应解决问题。
http://files.developer.sabre.com/doc/providerdoc/shopping/BargainFinderMaxRQ_v3-4-0_Design.xml