Travelport Universal API确认航空预订代理ID例外

时间:2015-03-18 07:16:26

标签: asp.net-mvc rest soap

我正在MVC4的旅行社网站上工作,该网站使用travelport进行航班查询,定价和预订。它工作正常,直到我继续确认预订机票。它抛出了这个异常

Message From Galileo : Uncaught Service Exception cause:com.cendant.tds.soa.framework.ServiceException: Exception ReturnedERR: AGENT ID - GALILEO
|+With the Dynamic GTID list of:AF86B8 

这是我在请求中设置的座席信息

AgentAction agentaction = new AgentAction()
{
    ActionType = AgentActionActionType.Created,
    AgentCode = "My Agent Code",
    BranchCode = "My Branch Code",
    AgencyCode = "My Agency Code",
    EventTime = DateTime.Now
};

还尝试设置AgentIDOverride但仍然获得相同的异常。任何人都可以指导我如何解决这个问题?提前致谢

UDPATE

这是SOAPException内部外部XML

<!-- INNER XML -->
<common_v27_0:ErrorInfo xmlns:common_v27_0=\"http://www.travelport.com/schema/common_v27_0\">
    <common_v27_0:Code>some numeric code</common_v27_0:Code>
    <common_v27_0:Service>AIRSVC</common_v27_0:Service>
    <common_v27_0:Type>Business</common_v27_0:Type>
    <common_v27_0:Description>Unsuccessful primary host transaction causing reservation failure.</common_v27_0:Description>
    <common_v27_0:TransactionId>some alpha numeric ID</common_v27_0:TransactionId>
    <common_v27_0:TraceId>some alpha numeric ID</common_v27_0:TraceId>
</common_v27_0:ErrorInfo>
<!-- OUTER XML -->
<detail>
    <common_v27_0:ErrorInfo xmlns:common_v27_0=\"http://www.travelport.com/schema/common_v27_0\">
        <common_v27_0:Code>some numeric code</common_v27_0:Code>
        <common_v27_0:Service>AIRSVC</common_v27_0:Service>
        <common_v27_0:Type>Business</common_v27_0:Type>
        <common_v27_0:Description>Unsuccessful primary host transaction causing reservation failure.</common_v27_0:Description>
        <common_v27_0:TransactionId>some alpha numeric ID</common_v27_0:TransactionId>
        <common_v27_0:TraceId>some alpha numeric ID</common_v27_0:TraceId>
    </common_v27_0:ErrorInfo>
</detail>

1 个答案:

答案 0 :(得分:4)

我的凭据存在一些问题,在生成测试凭据后,我能够执行请求。显然我的原始凭证是不活动的,这导致了这个例外,这个问题已经解决了。我知道这已经晚了但可能对某人有帮助。