2017-03-15 43 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

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