在 BFM 中获取 RouteHappy RichContent
Getting RouteHappy RichContent in BFM
在深入研究文档后,我发现了一个 Bargain Finder Max 请求的示例,该请求还请求了 RichContent(又名 RouteHappy 内容)。
按照这个例子,我明白我必须发送下面的代码,在 TPA_Extensions
里面也包含 IntelliSellTransaction
:
<TPA_Extensions>
<IntelliSellTransaction>
<RequestType Name="SOME VALUE" />
</IntelliSellTransaction>
<RichContent FlightAmenities="true" />
<MultiTicket DisplayPolicy="SOME VALUE" />
</TPA_Extensions>
考虑到这一点,当我发送请求时,我收到一条错误消息:Invalid content was found starting with element 'RichContent'.
完整的错误信息:
<Errors>
<Error Type="SERVER" Code="gcc14-isell-tn-00-2021-10-02-5gp8.us-central1-c.c.sab-prod-offers-6532.internal" ShortText="80">
TOMCAT
</Error>
<Error Type="ERR" Code="INVALIDREQ" ShortText="Schema Validation Failed">
cvc-complex-type.2.4.a: Invalid content was found starting with element 'RichContent'. One of '{"http://www.opentravel.org/OTA/2003/05":DiversityControl, "http://www.opentravel.org/OTA/2003/05":MessagingDetails, "http://www.opentravel.org/OTA/2003/05":AlternateAirportCities, "http://www.opentravel.org/OTA/2003/05":AlternateAirportMileage, "http://www.opentravel.org/OTA/2003/05":AwardShopping, "http://www.opentravel.org/OTA/2003/05":Billing, "http://www.opentravel.org/OTA/2003/05":ExchangeSettings, "http://www.opentravel.org/OTA/2003/05":Exchange, "http://www.opentravel.org/OTA/2003/05":PointsRedemption, "http://www.opentravel.org/OTA/2003/05":SplitTaxes, "http://www.opentravel.org/OTA/2003/05":AlternateDatesProcessing, "http://www.opentravel.org/OTA/2003/05":ItineraryCache, "http://www.opentravel.org/OTA/2003/05":MultiTicket, "http://www.opentravel.org/OTA/2003/05":Partitions, "http://www.opentravel.org/OTA/2003/05":ReservationData, "http://www.opentravel.org/OTA/2003/05":AlternatePCC, "http://www.opentravel.org/OTA/2003/05":ResponseControl, "http://www.opentravel.org/OTA/2003/05":BestOffers}' is expected.
</Error>
</Errors>
我渴望让 RouteHappy 内容发挥作用,因为它有助于提供更丰富的用户体验。
感谢您的帮助
答案是更新到BFM 6.3.0
。这是它可用的版本。
在深入研究文档后,我发现了一个 Bargain Finder Max 请求的示例,该请求还请求了 RichContent(又名 RouteHappy 内容)。
按照这个例子,我明白我必须发送下面的代码,在 TPA_Extensions
里面也包含 IntelliSellTransaction
:
<TPA_Extensions>
<IntelliSellTransaction>
<RequestType Name="SOME VALUE" />
</IntelliSellTransaction>
<RichContent FlightAmenities="true" />
<MultiTicket DisplayPolicy="SOME VALUE" />
</TPA_Extensions>
考虑到这一点,当我发送请求时,我收到一条错误消息:Invalid content was found starting with element 'RichContent'.
完整的错误信息:
<Errors>
<Error Type="SERVER" Code="gcc14-isell-tn-00-2021-10-02-5gp8.us-central1-c.c.sab-prod-offers-6532.internal" ShortText="80">
TOMCAT
</Error>
<Error Type="ERR" Code="INVALIDREQ" ShortText="Schema Validation Failed">
cvc-complex-type.2.4.a: Invalid content was found starting with element 'RichContent'. One of '{"http://www.opentravel.org/OTA/2003/05":DiversityControl, "http://www.opentravel.org/OTA/2003/05":MessagingDetails, "http://www.opentravel.org/OTA/2003/05":AlternateAirportCities, "http://www.opentravel.org/OTA/2003/05":AlternateAirportMileage, "http://www.opentravel.org/OTA/2003/05":AwardShopping, "http://www.opentravel.org/OTA/2003/05":Billing, "http://www.opentravel.org/OTA/2003/05":ExchangeSettings, "http://www.opentravel.org/OTA/2003/05":Exchange, "http://www.opentravel.org/OTA/2003/05":PointsRedemption, "http://www.opentravel.org/OTA/2003/05":SplitTaxes, "http://www.opentravel.org/OTA/2003/05":AlternateDatesProcessing, "http://www.opentravel.org/OTA/2003/05":ItineraryCache, "http://www.opentravel.org/OTA/2003/05":MultiTicket, "http://www.opentravel.org/OTA/2003/05":Partitions, "http://www.opentravel.org/OTA/2003/05":ReservationData, "http://www.opentravel.org/OTA/2003/05":AlternatePCC, "http://www.opentravel.org/OTA/2003/05":ResponseControl, "http://www.opentravel.org/OTA/2003/05":BestOffers}' is expected.
</Error>
</Errors>
我渴望让 RouteHappy 内容发挥作用,因为它有助于提供更丰富的用户体验。 感谢您的帮助
答案是更新到BFM 6.3.0
。这是它可用的版本。