0
我如何獲得LowFareSearchRes air伽利略的特定旅程/航段的座位數量。如何獲取可用座位的數量伽利略UAPI空氣
我發送LowFareSearchReq請求如下伽利略對於航班的可用性,我正在使用Travelport UAPI。
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1"
xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">localhost:8080/kestrel/AirService
</Action>
</s:Header>
<s:Body
xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
xmlns:xsd="http://www.w3.org/2001/xmlschema">
<LowFareSearchReq SolutionResult="true" AuthorizedBy="user" TraceId="0cd5900e3ba1b7143227a16dab585443" TargetBranch="********"
xmlns="http://www.travelport.com/schema/air_v39_0">
<BillingPointOfSaleInfo OriginApplication="UAPI"
xmlns="http://www.travelport.com/schema/common_v39_0" />
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport Code="DXB"
xmlns="http://www.travelport.com/schema/common_v39_0" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport Code="MNL"
xmlns="http://www.travelport.com/schema/common_v39_0" />
</SearchDestination>
<SearchDepTime PreferredTime="2017-12-22" />
<AirLegModifiers>
<PreferredCabins>
<CabinClass Type="Business"
xmlns="http://www.travelport.com/schema/common_v39_0">
</CabinClass>
</PreferredCabins>
</AirLegModifiers>
</SearchAirLeg>
<SearchAirLeg>
<SearchOrigin>
<CityOrAirport Code="MNL"
xmlns="http://www.travelport.com/schema/common_v39_0" />
</SearchOrigin>
<SearchDestination>
<CityOrAirport Code="DXB"
xmlns="http://www.travelport.com/schema/common_v39_0" />
</SearchDestination>
<SearchDepTime PreferredTime="2017-12-30" />
<AirLegModifiers>
<PreferredCabins>
<CabinClass Type="Business"
xmlns="http://www.travelport.com/schema/common_v39_0">
</CabinClass>
</PreferredCabins>
</AirLegModifiers>
</SearchAirLeg>
<AirSearchModifiers MaxSolutions="100"></AirSearchModifiers>
<SearchPassenger Code="ADT"
xmlns="http://www.travelport.com/schema/common_v39_0" />
<AirPricingModifiers FaresIndicator="AllFares">
<AccountCodes>
<AccountCode Code="*****"
xmlns="http://www.travelport.com/schema/common_v39_0"/>
</AccountCodes>
</AirPricingModifiers>
</LowFareSearchReq>
</s:Body>
</s:Envelope>
找到上述要求here
我試圖獲得在響應特定的旅程/段可用座位數的響應。
我不太確定如何獲取響應中可用的席位數量,請告訴我該如何發送請求並提供適當的詳細信息。
在此先感謝
你能分享一些代碼嗎?向我們展示你想要達到的效果 – DarkMukke
@ DarkMukke,請檢查我在編輯中的問題 – Sawood