2

你知道 sabre web-services 的 OTA_AirLowFareSearch 调用的 DepartureWindow 参数的格式是什么吗?无论我通过什么,它都会向我显示一个错误。

这是这些参数的完整文档(我不骗你):

<!--"DepartureDateTime" represents the date and time of departure.-->
<DepartureDateTime>2004-11-22T15:00:00</DepartureDateTime>
<!--"DepartureWindow" represents a window of time to search prior and post departure.-->
<!--Example: JR.DFW/S-OYLAS22NOV1500‡ZRD09001700-->
<DepartureWindow>09001700</DepartureWindow>

我已经尝试传递自 DepartureDateTime 以来的秒数和 unix 时间戳,但没有成功。错误信息是:

Error response received. The error was: INVALID TIME WINDOW IN  Z FIELDS

谢谢

4

2 回答 2

2

您必须在 DepartureDateTime 的窗口内指定时间

 <ns1:DepartureDateTime>2009-01-03T15:00:00</ns1:DepartureDateTime>
 <ns1:DepartureWindow>11001559</ns1:DepartureWindow>

对我来说很好

于 2008-12-07T10:04:42.933 回答
1

此外,您可以改用 OriginDestinationInformation.TPA_Extensions.AlternateTime

于 2008-12-18T16:16:49.667 回答