You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Travelport AirPriceReq API编组异常问题排查求助

问题描述

使用预生产凭证调用Travelport uAPI的AirPriceReq接口(目标分支为P7193093)获取特定航班定价详情时,返回错误信息:A general marshalling exception occurred.,对应TransactionId为71603C220A0D6A956050B65EB21624C5。无法确定该异常是否与目标分支配置或认证错误相关,需排查思路。


相关请求信息

请求URL

https://americas.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService

请求报文

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <AirPriceReq xmlns="http://www.travelport.com/schema/air_v18_0" TargetBranch="P7193093" AuthorizedBy="" TraceId="b2ad1866-b41a-4885-a557-79e03c2806a9" FareRuleType="long">
      <BillingPointOfSaleInfo xmlns="http://www.travelport.com/schema/common_v15_0" OriginApplication="uAPI"/>
      <AirItinerary>
        <AirSegment Key="C/OEKtTqWDKAHspWIAAAAA==" Status="NN" Equipment="73G" AvailabilitySource="Seamless" Origin="SYD" Destination="MEL" DepartureTime="2023-11-01T06:30:00.000+11:00" FlightNumber="405" Group="0" Carrier="QF" ArrivalTime="2023-11-01T08:05:00.000+11:00" ProviderCode="1V" FlightTime="95" TravelTime="P1DT1H45M0S">
          <CodeshareInfo OperatingCarrier="CO">Continental</CodeshareInfo>
        </AirSegment>
      </AirItinerary>
      <AirPricingModifiers FaresIndicator="PublicAndPrivateFares">
        <ExemptTaxes/>
      </AirPricingModifiers>
      <SearchPassenger xmlns="http://www.travelport.com/schema/common_v15_0" PricePTCOnly="false" Code="ADT"/>
      <AirPricingCommand/>
    </AirPriceReq>
  </s:Body>
</s:Envelope>

响应报文

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP:Body>
    <SOAP:Fault>
      <faultcode>Server.System</faultcode>
      <faultstring>A general marshalling exception occurred.</faultstring>
      <detail>
        <common_v51_0:ErrorInfo xmlns:common_v51_0="http://www.travelport.com/schema/common_v51_0">
          <common_v51_0:Code>1201</common_v51_0:Code>
          <common_v51_0:Service>WEBSVC</common_v51_0:Service>
          <common_v51_0:Type>System</common_v51_0:Type>
          <common_v51_0:Description>A general marshalling exception occurred.</common_v51_0:Description>
          <common_v51_0:TransactionId>71603C220A0D6A956050B65EB21624C5</common_v51_0:TransactionId>
        </common_v51_0:ErrorInfo>
      </detail>
    </SOAP:Fault>
  </SOAP:Body>
</SOAP:Envelope>

排查思路

  • 校验请求报文的XML合法性

    • 对照Travelport air_v18_0的schema文档,检查XML结构、字段类型、必填项是否符合要求,重点排查可能导致编组失败的字段:比如TravelTime的P1DT1H45M0S是否严格遵循ISO 8601时长格式;AirSegment的Key值是否为有效标识;CodeshareInfo的文本内容与OperatingCarrier属性是否匹配规范。
    • 检查空字段:AuthorizedBy为空字符串,确认该字段是否允许为空,或是否需要传入合法值。
  • 验证目标分支与凭证权限

    • 确认预生产凭证是否具备访问目标分支P7193093的权限,可联系Travelport支持团队核对分支权限配置。
    • 使用同一凭证调用其他基础接口(如AirAvailabilityReq)测试该目标分支,排除分支本身不可用的问题。
  • 排查认证相关问题

    • 检查请求头中的认证参数(如Authorization、X-Authorization)是否正确,确认预生产凭证未过期、参数无遗漏或格式错误。
    • 对比同环境下成功调用的请求头,确保认证信息一致。
  • 获取服务器端详细日志

    • 携带TransactionId 71603C220A0D6A956050B65EB21624C5联系Travelport技术支持,获取服务器端的具体编组错误日志,定位是请求解析阶段还是响应生成阶段出现的异常。

内容的提问来源于stack exchange,提问作者shashank barman

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 12:52:03