2017-03-15 12 views
1

私はSabre OTA_AirAvailRQを呼び出しています。私は要求を持っていますが、Sabreは応答を続けています。ソープを消費するOTA_AirAvailRQサービスfrom Saber

<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> 

サンプルはSabreサイトからのものです。

リクエストに間違いがありますか?

<?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サイトの例を使用してエラーを返します。不成功の試みが1回発生した後、ペイロードノードが追加されました。 –

+0

私はあなたのリクエストを使用し、リクエストが成功しました。私は何か余分なものを追加していると思います。 – Wisdoom

+0

私は上記の完全な要求を追加しました。 –

関連する問題