bruno bb
bruno bb

Reputation: 152

Consuming Soap OTA_AirAvailRQ service from Sabre

I'm implementing a call to Sabre OTA_AirAvailRQ. After going thorugh the documentation i have the request but Sabre keep responding:

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

The sample is from Sabre Site.

Any idea what is wrong with the request ?

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

Upvotes: 1

Views: 515

Answers (1)

Giancarlo
Giancarlo

Reputation: 1427

The part should not be used.

If you use regular SOAP, you should send the OTA_AirAvailRQ part inside the body element. If you use SOAP with attachment, then the payload should just be the OTA_AirAvailRQ content.

Upvotes: 2

Related Questions