如何获取OTA_AirRulesRQ API中有关停站航班的票价规则

时间:2018-11-16 10:00:16

标签: sabre

能够使用OTA_AirRulesRQ API获取航班的票价规则。但是,当试图获得一个或多个停靠点的航班的票价规则时,在同一个API中出现问题。

请求:

<OTA_AirRulesRQ ReturnHostCommand="true" Version="2.3.0" 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">
<OriginDestinationInformation>
<FlightSegment DepartureDateTime="12-17">
<DestinationLocation LocationCode="HYD" />
<MarketingCarrier Code="AI" />
<OriginLocation LocationCode="BLR" />
</FlightSegment>
<FlightSegment DepartureDateTime="12-17">
<DestinationLocation LocationCode="MAA" />
<MarketingCarrier Code="AI" />
<OriginLocation LocationCode="HYD" />
</FlightSegment>
</OriginDestinationInformation>
<RuleReqInfo>
<FareBasis Code="Y" />
</RuleReqInfo>
</OTA_AirRulesRQ>

获取错误为:

<stl:Error timeStamp="2018-11-16T03:45:03-06:00" type="Validation">
            <stl:SystemSpecificResults>
              <stl:Message>cvc-complex-type.2.4.d: Invalid content was found starting with element 'FlightSegment'. No child element is expected at this point.</stl:Message>
              <stl:ShortText>ERR.SWS.CLIENT.VALIDATION_FAILED</stl:ShortText>
            </stl:SystemSpecificResults>
          </stl:Error>

任何人都可以在这方面提供帮助,可能是请求本身有任何问题。

0 个答案:

没有答案