SOAP Message Structure

Header and Credentials

All messages use the SOAP protocol, which includes a SOAP Security header for authentication and a SOAP body containing the OTA message. During integration, the Hotel Trader Sales team will provide you with security credentials for the SOAP Header.

Sample

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soap:Header>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:mustUnderstand="1">
            <wsse:UsernameToken>
                <wsse:Username>XXXXXX</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">YYYYYYYYY</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </soap:Header>
    <soap:Body>
        <OTA_HotelAvailNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MessageContentCode="3" TimeStamp="2017-03-21T11:31:32.5876714Z" Target="Production" Version="1.001" EchoToken="d5ea7f53-e49d-42c2-a517-d79df55df735">
            <AvailStatusMessages HotelCode="[HOTEL CODE PROVIDED BY Hotel Trader]">
                <AvailStatusMessage BookingLimit="10" BookingLimitMessageType="SetLimit">
                    <StatusApplicationControl InvTypeCode="[ROOM CODE PROVIDED BY Hotel Trader]" RatePlanCode="[RATE PLAN CODE PROVIDED BY Hotel Trader]" Start="2015-11-15" End="2015-11-15" />
                    <LengthsOfStay>
                        <LengthOfStay Time="2" MinMaxMessageType="SetMinLOS"/>
                        <LengthOfStay Time="5" MinMaxMessageType="SetMaxLOS"/>
                    </LengthsOfStay>
                    <RestrictionStatus Status="Open"/>
                </AvailStatusMessage>
                <AvailStatusMessage BookingLimit="10" BookingLimitMessageType="SetLimit">
                    <StatusApplicationControl InvTypeCode="[ROOM CODE PROVIDED BY Hotel Trader]" RatePlanCode="[RATE PLAN CODE PROVIDED BY Hotel Trader]" Start="2015-11-15" End="2015-11-15"/>
                    <RestrictionStatus MinAdvancedBookingOffset="P30D"/>
                </AvailStatusMessage>
            </AvailStatusMessages>
        </OTA_HotelAvailNotifRQ>
    </soap:Body>
 </soap:Envelope>