如何获取可用座位数 Galileo UAPI Air

How to get numbers of available seats Galileo UAPI Air

如何在 LowFareSearchRes air Galileo 中获取特定 journey/segment 的可用座位数。

我正在向 Galileo 发送如下 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

我正在尝试获取响应中特定 journey/Segment 的可用座位数。

我不太确定回复中的可用座位数,请让我知道我应该如何发送请求并提供适当的详细信息。

提前致谢

好的,所以在浏览了各种网站之后,我终于找到了。这是如何做到这一点。

我们可以使用 SeatMapReq/Rsp 来获取给定航班的可用座位数。

查看示例here

更新:- 即使在 LFS 的响应中,我们也可以在 air:BookingInfo 的 BookingCount 属性中获取。