在某些情况下,我通过将SegmentSelect传递给EAB请求,为两个不同的Flight Segments分别调用EnhancedAirBookRQ。
例如:
考虑我先为Segment1 BLR-DEL执行EAB,然后再次为Segment 2 DEL-BLR调用EAB。
现在当EAB为这两个段执行两次时,EAB的第一个响应将告诉我BLR-DEL的段细节, 然而,EAB的第二个响应将集体声明所有段,即BLR-DEL和DEL-BLR。
所以从第二个响应中,我想只提取属于DEL-BLR的段。那我该怎么做呢。
EAB的回应1:
<ReservationItems>
<Item RPH="1">
<FlightSegment AirMilesFlown="1075" ArrivalDateTime="04-22T09:45" DayOfWeekInd="5" DepartureDateTime="2016-04-22T07:00" ElapsedTime="02.45" FlightNumber="0807" NumberInParty="02" ResBookDesigCode="W" SegmentNumber="0001" SmokingAllowed="false" SpecialMeal="false" Status="SS" StopQuantity="00" eTicket="true">
<DestinationLocation LocationCode="BLR" />
<Equipment AirEquipType="73H" />
<MarketingAirline Code="9W" FlightNumber="0807" />
<Meal Code="B" />
<OriginLocation LocationCode="DEL" Terminal="TERMINAL 3" TerminalCode="3" />
<SupplierRef ID="DC9W" />
<UpdatedArrivalTime>04-22T09:45</UpdatedArrivalTime>
<UpdatedDepartureTime>04-22T07:00</UpdatedDepartureTime>
</FlightSegment>
</Item>
</ReservationItems>
EAB的回应2:
<ReservationItems>
<Item RPH="1">
<FlightSegment AirMilesFlown="1075" ArrivalDateTime="04-22T09:45" DayOfWeekInd="5" DepartureDateTime="2016-04-22T07:00" ElapsedTime="02.45" FlightNumber="0807" NumberInParty="02" ResBookDesigCode="W" SegmentNumber="0001" SmokingAllowed="false" SpecialMeal="false" Status="SS" StopQuantity="00" eTicket="true">
<DestinationLocation LocationCode="BLR" />
<Equipment AirEquipType="73H" />
<MarketingAirline Code="9W" FlightNumber="0807" />
<Meal Code="B" />
<OriginLocation LocationCode="DEL" Terminal="TERMINAL 3" TerminalCode="3" />
<SupplierRef ID="DC9W" />
<UpdatedArrivalTime>04-22T09:45</UpdatedArrivalTime>
<UpdatedDepartureTime>04-22T07:00</UpdatedDepartureTime>
</FlightSegment>
</Item>
<Item RPH="2">
<FlightSegment AirMilesFlown="1075" ArrivalDateTime="04-23T08:50" DayOfWeekInd="6" DepartureDateTime="2016-04-23T06:05" ElapsedTime="02.45" FlightNumber="0818" NumberInParty="02" ResBookDesigCode="V" SegmentNumber="0002" SmokingAllowed="false" SpecialMeal="false" Status="SS" StopQuantity="00" eTicket="true">
<DestinationLocation LocationCode="DEL" Terminal="TERMINAL 3" TerminalCode="3" />
<Equipment AirEquipType="73H" />
<MarketingAirline Code="9W" FlightNumber="0818" />
<Meal Code="B" />
<OriginLocation LocationCode="BLR" />
<SupplierRef ID="DC9W" />
<UpdatedArrivalTime>04-23T08:50</UpdatedArrivalTime>
<UpdatedDepartureTime>04-23T06:05</UpdatedDepartureTime>
</FlightSegment>
</Item>
</ReservationItems>
注意:我不能基于SegmentNumber,因为当停留概念出现时,Segment会相应编号。
答案 0 :(得分:1)
如果您想在单个请求中为两个细分定价,则必须使用&#39;婚姻组&#39;
NodeTocreate.BeginEdit();
答案 1 :(得分:1)
您在此需要两个单独的EAB请求的任何特定原因? (可能在单独的用户界面中提供出站和入境航班?)
如果在购物期间(例如:使用BFM:https://developer.sabre.com/docs/read/soap_apis/air/search/bargain_finder_max)您要求往返行程(为出站和入境部分指定OriginDestinationInformation元素),您可以在单个EAB请求中预订完整行程。< / p>
如果您的用户界面需要单独提供出站和入境航班,则必须考虑购物提供的组合,然后相应地使用EAB(单一请求)进行预订。