2017-03-15 39 views
1

我落实军刀OTA_AirAvailRQ通话。要文档thorugh后,我有要求,但军刀保持响应:使用SOAP OTA_AirAvailRQ服务从军刀

<stl:ApplicationResults status="Unknown"> 
    <stl:Error type="Application" timeStamp="2017-07-04T11:55:36-05: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> 

,样品来自军刀网站。

任何想法是错误的请求?

<?xml version="1.0" encoding="UTF-8"?> 
<SOAP-ENV:Envelope xmlns:ns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
    <SOAP-ENV:Header> 
     <eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" SOAP-ENV:mustUnderstand="0"> 
      <eb:From> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">132654</eb:PartyId> 
      </eb:From> 
      <eb:To> 
       <eb:PartyId eb:type="urn:x12.org:IO5:01">56465</eb:PartyId> 
      </eb:To> 
      <eb:CPAId>IPCC</eb:CPAId> 
      <eb:ConversationId>12340</eb:ConversationId> 
      <eb:Service eb:type="sabreXML"></eb:Service> 
      <eb:Action>OTA_AirAvailLLSRQ</eb:Action> 
      <eb:MessageData></eb:MessageData> 
     </eb:MessageHeader> 
     <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> 
      <wsse:BinarySecurityToken>Shared/IDL:IceSessXXXXXXXXXX</wsse:BinarySecurityToken> 
     </wsse:Security> 
    </SOAP-ENV:Header> 
    <SOAP-ENV:Body> 
     <ns:OTA_AirAvailRQ Version="2.4.0"> 
      <ns:OriginDestinationInformation> 
       <ns:FlightSegment DepartureDateTime="12-12"> 
        <ns:DestinationLocation LocationCode="DFW"/> 
        <ns:OriginLocation LocationCode="HNL"/> 
       </ns:FlightSegment> 
      </ns:OriginDestinationInformation> 
     </ns:OTA_AirAvailRQ> 
    </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

回答

2

该部分不应使用。

如果使用常规的SOAP,你应该送body元素中的OTA_AirAvailRQ部分。如果您使用带附件的SOAP,那么有效负载应该只是OTA_AirAvailRQ内容。

+0

检查新的请求字符串。我们使用reguar SOAP,所以我删除了有效负载节点。但仍然收到Saber的错误。这次意外的请求处理错误。另外o使用Saber网站的例子,并且还返回错误。在经历了许多不成功的尝试之后,Payload节点被添加。 –

+0

我已经使用了您的请求并获得了成功的请求,您可以分享您为该请求所做的所有工作吗?我认为你正在增加一些额外的或缺少的东西。 – Wisdoom

+0

我已添加上面的完整请求。 –