gpt4 book ai didi

node.js - 使用 Sabre SOAP API 检索航类信息时出错

转载 作者:太空宇宙 更新时间:2023-11-04 02:18:14 26 4
gpt4 key购买 nike

我首先发送一个请求来检索身份验证 token ;使用该 token ,我尝试执行 OTA_AirAvailLLSRS 调用,该调用返回以下结果:

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1">
<eb:From>
<eb:PartyId eb:type="urn:x12.org:IO5:01">123982</eb:PartyId>
</eb:From>
<eb:To>
<eb:PartyId eb:type="urn:x12.org:IO5:01">234552</eb:PartyId>
</eb:To>
<eb:CPAId>adf</eb:CPAId>
<eb:ConversationId>1343843</eb:ConversationId>
<eb:Service eb:type="OTA">OTA_AirAvailLLSRQ</eb:Service>
<eb:Action>OTA_AirAvailLLSRS</eb:Action>
<eb:MessageData>
<eb:MessageId>6ef80a1d-a960-4ab1-bf52-bab150ef7a16@61</eb:MessageId>
<eb:Timestamp>2016-01-14T12:37:31</eb:Timestamp>
<eb:RefToMessageId>91082930-babb-11e5-b8df-057c6da3c883</eb:RefToMessageId>
</eb:MessageData>
</eb:MessageHeader>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext">
<wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">asds</wsse:BinarySecurityToken>
</wsse:Security>
</soap-env:Header>
<soap-env:Body>
<OTA_AirAvailRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:stl="http://services.sabre.com/STL/v01" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.3.0">
<stl:ApplicationResults status="Unknown">
<stl:Error type="Application" timeStamp="2016-01-14T06:37:31-06:00">
<stl:SystemSpecificResults>
<stl:Message>Sending request to the Host failed</stl:Message>
<stl:ShortText>ERR.SWS.HOST.CONNECTOR_ERROR</stl:ShortText>
</stl:SystemSpecificResults>
</stl:Error>
</stl:ApplicationResults>
</OTA_AirAvailRS>
</soap-env:Body>
</soap-env:Envelope>

有人知道问题出在哪里吗?

如果您需要更多信息,请告诉我。

响应请求:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sec="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:mes="http://www.ebxml.org/namespaces/messageHeader" xmlns:ns="http://webservices.sabre.com/sabreXML/2011/10">
<soapenv:Header>
<sec:Security>
<!--Optional:-->
<!--Optional:-->
<!--<sec:SabreAth>?</sec:SabreAth>-->
<!--Optional:-->
<sec:BinarySecurityToken>rfsd</sec:BinarySecurityToken>
</sec:Security>
<mes:MessageHeader mes:version="2.0">
<mes:From>
<!--1 or more repetitions:-->
<mes:PartyId mes:type="urn:x12.org:IO5:01">234552</mes:PartyId>
<!--Optional:-->
<!-- <mes:Role>?</mes:Role> -->
</mes:From>
<mes:To>
<!--1 or more repetitions:-->
<mes:PartyId mes:type="urn:x12.org:IO5:01">123982</mes:PartyId>
<!--Optional:-->
<!-- <mes:Role>?</mes:Role> -->
</mes:To>
<mes:CPAId>dfsf</mes:CPAId>
<mes:ConversationId>3424</mes:ConversationId>
<mes:Service mes:type="OTA">OTA_AirAvailLLSRS</mes:Service>
<mes:Action>OTA_AirAvailLLSRQ</mes:Action>
<mes:MessageData>
<mes:MessageId>766fe600-bb54-11e5-b803-b7a2549d49cb</mes:MessageId>
<mes:Timestamp>2016-01-15T06:51:54.336Z</mes:Timestamp>
<!--Optional:-->
<!-- <mes:RefToMessageId>?</mes:RefToMessageId> -->
<!--Optional:-->
<!-- <mes:TimeToLive>?</mes:TimeToLive> -->
<!--Optional:-->
<!-- <mes:Timeout>?</mes:Timeout> -->
</mes:MessageData>
<!--Optional:-->
<!-- <mes:DuplicateElimination>?</mes:DuplicateElimination> -->
<!--Zero or more repetitions:-->
<!-- <mes:Description xml:lang="?">?</mes:Description> -->
<!--You may enter ANY elements at this point-->
</mes:MessageHeader>
</soapenv:Header>
<soapenv:Body>

<ns:OTA_AirAvailRQ Version="2.3.0">
<!--Optional:-->
<ns:OptionalQualifiers>
<!--Optional:-->
<!-- <ns:AdditionalAvailability AirExtras="?" DirectAccess="?" Ind="?" MoveDown="?"/> -->
<!--Optional:-->

<ns:FlightQualifiers DirectOnly="false">

<!-- <ns:FlightQualifiers Charters="?" DirectOnly="" ExcludeCodeshares="?" Scan="?"> -->
<!--Optional:-->
<!-- <ns:AlliancePartner> -->
<!-- <ns:Group>?</ns:Group> -->
<!-- </ns:AlliancePartner> -->
<!--Optional:-->
<!-- <ns:Cabin Exclude="?"> -->
<!--1 or more repetitions:-->
<!-- <ns:Designator>?</ns:Designator> -->
<!-- </ns:Cabin> -->
<!--Optional:-->
<!-- <ns:VendorPrefs DirectAccess="?" Exclude="?"> -->
<!--0 to 20 repetitions:-->
<!-- <ns:Airline Code="?"/> -->
<!-- </ns:VendorPrefs> -->
</ns:FlightQualifiers>
<!--Optional:-->
<!-- <ns:TimeQualifiers> -->
<!--Optional:-->
<!-- <ns:ArrivalTime WindowAfter="?" WindowBefore="?"/> -->
<!--Optional:-->
<!-- <ns:DepartureTime WindowBefore="?" WindowAfter="?"/> -->
<!-- </ns:TimeQualifiers> -->
</ns:OptionalQualifiers>
<!--Optional:-->
<ns:OriginDestinationInformation>
<ns:FlightSegment DepartureDateTime="2016-02-01">
<!-- <ns:FlightSegment DepartureDateTime="2016-02-01" NumberInParty="1"> -->
<ns:DestinationLocation LocationCode="LAX"/>
<ns:OriginLocation LocationCode="JFK"/>
</ns:FlightSegment>

<!-- <ns:FlightSegment ArrivalDateTime="?" DepartureDateTime="?" FlightNumber="?" NumberInParty="?" ResBookDesigCode="?"> -->
<!--Optional:-->
<!-- <ns:ConnectionLocations> -->
<!--Optional:-->
<!-- <ns:CarrierSpecificDisplay> -->
<!-- <ns:LegOne> -->
<!-- <ns:VendorPrefs Exclude="?" ExcludeCodeshares="?" Any="?"> -->
<!--0 to 20 repetitions:-->
<!-- <ns:Airline Code="?"/> -->
<!-- </ns:VendorPrefs> -->
<!-- </ns:LegOne> -->
<!--Optional:-->
<!-- <ns:LegThree> -->
<!-- <ns:VendorPrefs Exclude="?" ExcludeCodeshares="?" Any="?"> -->
<!--0 to 20 repetitions:-->
<!-- <ns:Airline Code="?"/> -->
<!-- </ns:VendorPrefs> -->
<!-- </ns:LegThree> -->
<!-- <ns:LegTwo> -->
<!-- <ns:VendorPrefs Exclude="?" ExcludeCodeshares="?" Any="?"> -->
<!--0 to 20 repetitions:-->
<!-- <ns:Airline Code="?"/> -->
<!-- </ns:VendorPrefs> -->
<!-- </ns:LegTwo> -->
<!-- </ns:CarrierSpecificDisplay> -->
<!--1 to 2 repetitions:-->
<!-- <ns:ConnectionLocation LocationCode="?"> -->
<!--Optional:-->
<!-- <ns:ConnectTimeOverrides Max="?" Min="?"/> -->
<!-- </ns:ConnectionLocation> -->
<!-- </ns:ConnectionLocations> -->
<!-- <ns:DestinationLocation LocationCode="?"/> -->
<!-- <ns:OriginLocation LocationCode="?"/> -->
<!-- </ns:FlightSegment> -->

</ns:OriginDestinationInformation>
</ns:OTA_AirAvailRQ>

</soapenv:Body>
</soapenv:Envelope>

最佳答案

try the following Code.

header
===========
<eb:ConversationId>1343843</eb:ConversationId>
<eb:Service eb:type="OTA">Air</eb:Service>
<eb:Action>OTA_AirAvailLLSRQ</eb:Action>
<eb:CPAID>123</eb:CPAID>

Body
===============

<OTA_AirAvailRQ Version="1.11.1">
<POS>
<Source PseudoCityCode="123"/>
</POS>
<SpecificFlightInfo>
<FlightNumber Number="831"/>
<Airline Code="9W"/>
<TPA_Extensions>
<DepartureDateTime DateTime="2016-01-31T19:30:00"/>
<OriginLocation LocationCode="MAA"/>
<DestinationLocation LocationCode="DEL"/>
</TPA_Extensions>
</SpecificFlightInfo>
</OTA_AirAvailRQ>

关于node.js - 使用 Sabre SOAP API 检索航类信息时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34790147/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com