有没有办法在不知道飞机舱/票价类型的情况下为所有可预订的舱室提供座位?
我检查了服务文档和WSDL文件,我找不到任何方法来做到这一点。
示例请求
<ns6:EnhancedSeatMapRQ >
<ns6:SeatMapQueryEnhanced correlationID="50468727">
<ns6:RequestType>Payload</ns6:RequestType>
<ns6:Flight destination="TXL" origin="VIE">
<ns6:DepartureDate>2016-02-24</ns6:DepartureDate>
<ns6:Operating carrier="AB">8401</ns6:Operating>
<ns6:Marketing carrier="AB">8401</ns6:Marketing>
<ns6:ArrivalDate>2016-02-24</ns6:ArrivalDate>
</ns6:Flight>
<ns6:CabinDefinition>
<ns6:RBD>M</ns6:RBD>
</ns6:CabinDefinition>
<ns6:Currency>USD</ns6:Currency>
<ns6:POS company="AB" multiHost="AB">
<ns6:Actual city="HDQ"/>
<ns6:ClientContext clientType="INTERACT"/>
</ns6:POS>
<ns6:Client>KIOSK</ns6:Client>
</ns6:SeatMapQueryEnhanced>
响应:
从响应中可以看出,它只返回了一个舱室(M级)座位可用性数据。我尝试了不同类型的请求,但我只得到一个小屋作为回应。
<ns6:EnhancedSeatMapRS >
<ns4:ApplicationResults status="Complete"/>
<ns6:SeatMap changeOfGaugeInd="false">
<ns6:Equipment>320</ns6:Equipment>
<ns6:Flight destination="TXL" origin="VIE">
<ns6:DepartureDate>2016-02-24</ns6:DepartureDate>
<ns6:Operating carrier="AB">8401</ns6:Operating>
<ns6:Marketing carrier="AB">8401</ns6:Marketing>
</ns6:Flight>
<ns6:FareAvailQualifiers accompaniedByInfantInd="false">
<ns6:TravellerID>2</ns6:TravellerID>
<ns6:GivenName>QWE</ns6:GivenName>
<ns6:Surname>QEQP</ns6:Surname>
</ns6:FareAvailQualifiers>
<ns6:Cabin firstRow="1" lastRow="30" classLocation="Maindeck" seatOccupationDefault="Free">
<ns6:CabinClass>
<ns6:RBD>M</ns6:RBD>
<ns6:MarketingDescription>PRICE PER SEAT:USD 14.50-USD 30.10</ns6:MarketingDescription>
</ns6:CabinClass>
<ns6:Row>
<ns6:RowNumber>1</ns6:RowNumber>
<ns6:Seat occupiedInd="false" inoperativeInd="false" premiumInd="false" chargeableInd="true" exitRowInd="false" restrictedReclineInd="false" noInfantInd="false">
<ns6:Number>A</ns6:Number>
<ns6:Facilities>
<ns6:Detail>FrontOfCabin</ns6:Detail>
</ns6:Facilities>
<ns6:PassengerEntitlementAndPrice entitledInd="true">
<ns6:TravellerID>1</ns6:TravellerID>
<ns6:Price>
<ns6:TotalAmount currencyCode="USD">21.20</ns6:TotalAmount>
</ns6:Price>
</ns6:PassengerEntitlementAndPrice>
<ns6:PassengerEntitlementAndPrice entitledInd="true">
<ns6:TravellerID>2</ns6:TravellerID>
<ns6:Price>
<ns6:TotalAmount currencyCode="USD">21.20</ns6:TotalAmount>
</ns6:Price>
</ns6:PassengerEntitlementAndPrice>
<ns6:Bilateral>
<ns6:Characteristic>StandardSeat</ns6:Characteristic>
</ns6:Bilateral>
</ns6:Seat>
........
</ns6:Cabin>
</ns6:SeatMap>
</ns6:EnhancedSeatMapRS>
答案 0 :(得分:1)
不,座位的可用性也取决于其服务等级。我的意思是,某些座位可能会因同一舱内的不同服务类别而受阻。