[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[GDS]Sabre的OTA_AirRulesRQ,参数到达应该写什么。

上一篇:[备忘]vim保存若干行到新文件
下一篇:[备忘]用一段XML生成javaBean的小网站

添加日期:2018/5/28 20:23:15 快速返回   返回列表 阅读1665次
如果只是简单的,写出发城市,到达城市,销售航司或开票航司,
很多farerule是取不到的。

实际BFM结果里已经告诉咱们了。
---------------------------------------------
<FareBasisCodes>
   <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">EKWSRCN</FareBasisCode>
   <FareBasisCode BookingCode="X" AvailabilityBreak="true" DepartureAirportCode="CDG" ArrivalAirportCode="PVG" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">XXP9CN</FareBasisCode>
</FareBasisCodes>

PVG-CDG,AF,EKWSRCN
PVG-CDG,AF,XXP9CN
转为RD指令就是:
RDPVGCDG03JUN18EKWSRCN-AF*16
RDPVGCDG03JUN18XXP9CN-AF*16

-------------------------------------------------------
<FareBasisCodes>
   <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">EKWSRCN</FareBasisCode>
   <FareBasisCode BookingCode="L" DepartureAirportCode="CDG" ArrivalAirportCode="AMS" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">TKXSFCN</FareBasisCode>
   <FareBasisCode BookingCode="T" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="AF">TKXSFCN</FareBasisCode>
</FareBasisCodes>
第三行没有FareComponentBeginAirport和FareComponentEndAirport,所以忽略掉。
PVG-CDG,AF,EKWSRCN
PVG-CDG,AF,TKXSFCN
转为RD指令就是:
RDPVGCDG03JUN18EKWSRCN-AF*16
RDPVGCDG03JUN18TKXSFCN-AF*16

-------------------------------------------------------
<FareBasisCodes>
   <FareBasisCode BookingCode="Q" DepartureAirportCode="PVG" ArrivalAirportCode="AMS" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="AF">QKWSFCN</FareBasisCode>
   <FareBasisCode BookingCode="L" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="CDG" GovCarrier="AF">QKWSFCN</FareBasisCode>
   <FareBasisCode BookingCode="L" DepartureAirportCode="CDG" ArrivalAirportCode="AMS" FareComponentBeginAirport="CDG" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="AF">TKXSFCN</FareBasisCode>
   <FareBasisCode BookingCode="T" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="AF">TKXSFCN</FareBasisCode>
</FareBasisCodes>
这个没啥。
PVG-CDG,AF,QKWSFCN
PVG-CDG,AF,TKXSFCN
转为RD指令就是:
RDPVGCDG03JUN18QKWSFCN-AF*16
RDPVGCDG03JUN18TKXSFCN-AF*16
-------------------------------------------------------
<FareBasisCodes>
   <FareBasisCode BookingCode="S" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="ICN" FareComponentBeginAirport="PVG" FareComponentEndAirport="ICN" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="OZ">SLCK</FareBasisCode>
   <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="ICN" ArrivalAirportCode="IST" FareComponentBeginAirport="ICN" FareComponentEndAirport="IST" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="OZ">EKWKP</FareBasisCode>
   <FareBasisCode BookingCode="E" AvailabilityBreak="true" DepartureAirportCode="IST" ArrivalAirportCode="ICN" FareComponentBeginAirport="IST" FareComponentEndAirport="ICN" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="OZ">EKWKP</FareBasisCode>
   <FareBasisCode BookingCode="Q" AvailabilityBreak="true" DepartureAirportCode="ICN" ArrivalAirportCode="PVG" FareComponentBeginAirport="ICN" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="OZ">QLCK</FareBasisCode>
</FareBasisCodes>
这个特殊,是往返中间夹了一个往返
PVG-ICN,OZ,SLCK
ICN-IST,OZ,EKWKP
PVG-ICN,OZ,QLCK
转为RD指令就是:
RDPVGICN03JUN18SLCK-OZ*16
RDICNIST03JUN18EKWKP-OZ*16
RDPVGICN03JUN18QLCK-OZ*16
懂了吗?
FareComponentDirectionality="FROM" 时,
fromCity永远是FareComponentBeginAirport
toCity永远是FareComponentEndAirport.
FareComponentDirectionality="TO" 时,就反过来.

-------------------------------------------------------
<FareBasisCodes>
   <FareBasisCode BookingCode="L" AvailabilityBreak="true" DepartureAirportCode="PVG" ArrivalAirportCode="CDG" FareComponentBeginAirport="PVG" FareComponentEndAirport="CDG" FareComponentDirectionality="FROM" FareComponentVendorCode="ATP" GovCarrier="MU">LKSFCN</FareBasisCode>
   <FareBasisCode BookingCode="B" AvailabilityBreak="true" DepartureAirportCode="CDG" ArrivalAirportCode="IST" FareComponentBeginAirport="CDG" FareComponentEndAirport="IST" FareComponentDirectionality="FROM" FareComponentVendorCode="SITA" GovCarrier="AF">YIF</FareBasisCode>
   <FareBasisCode BookingCode="Q" AvailabilityBreak="true" DepartureAirportCode="IST" ArrivalAirportCode="AMS" FareComponentBeginAirport="IST" FareComponentEndAirport="PVG" FareComponentDirectionality="TO" FareComponentVendorCode="ATP" GovCarrier="MU">NKSRCE</FareBasisCode>
   <FareBasisCode BookingCode="N" AvailabilityBreak="true" DepartureAirportCode="AMS" ArrivalAirportCode="PVG" GovCarrier="MU">NKSRCE</FareBasisCode>
</FareBasisCodes>
注意航司
PVG-CDG,MU,LKSFCN
CDG-IST,AF,YIF
PVG-IST,MU,NKSRCE
转为RD指令就是:
RDPVGCDG03JUN18LKSFCN-MU*16
RDCDGIST03JUN18YIF-AF*16
RDPVGIST03JUN18NKSRCE-MU*16
----------------------------------------
<FareBasisCode PrivateFareType="*" AccountCode="123456"
有AccountCode的,在OTA_AirRulesRQ请求时要把code带上,否则取不到farerule的。
 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved