SoapDispatcher


Click here for a complete list of operations.

sendOTAHotelBookingRule

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /dispatcher.asmx HTTP/1.1
Host: www.med-hotels.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "sendOTAHotelBookingRule"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <authentication xmlns="http://xmlota.wspan.com/webservice/">
      <userid>string</userid>
      <password>string</password>
    </authentication>
  </soap:Header>
  <soap:Body>
    <OTA_HotelBookingRuleRQ xmlns="http://www.opentravel.org/OTA/2003/05">
      <RuleMessage ChainCode="string" BrandCode="string" HotelCode="string" HotelCityCode="string" HotelName="string" HotelCodeContext="string" ChainName="string" BrandName="string">
        <StatusApplication Start="string" Duration="string" End="string" RatePlanType="string" RatePlanCode="string" RatePlanID="string" RatePlanQualifier="boolean" PromotionCode="string" PromotionVendorCode="string" RatePlanCategory="string" InvCodeApplication="string" InvCode="string" InvType="string" InvTypeCode="string" IsRoom="boolean" NumberOfUnits="integer" />
        <GuestCounts IsPerRoom="boolean">
          <GuestCount AgeQualifyingCode="string" Age="integer" Count="integer" />
          <GuestCount AgeQualifyingCode="string" Age="integer" Count="integer" />
        </GuestCounts>
        <HotelReservationIDs>
          <HotelReservationID ResID_Type="string" ResID_Value="string" ResID_Source="string" ResID_SourceContext="string" ResID_Date="dateTime" ForGuest="boolean" ResGuestRPH="string" CancelOriginatorCode="string" CancellationDate="dateTime" />
          <HotelReservationID ResID_Type="string" ResID_Value="string" ResID_Source="string" ResID_SourceContext="string" ResID_Date="dateTime" ForGuest="boolean" ResGuestRPH="string" CancelOriginatorCode="string" CancellationDate="dateTime" />
        </HotelReservationIDs>
        <RuleCategories>
          <RuleCategory Name="string" Number="nonNegativeInteger" />
          <RuleCategory Name="string" Number="nonNegativeInteger" />
        </RuleCategories>
      </RuleMessage>
    </OTA_HotelBookingRuleRQ>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <OTA_HotelBookingRuleRS TransactionStatusCode="" xmlns="http://www.opentravel.org/OTA/2003/05" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /dispatcher.asmx HTTP/1.1
Host: www.med-hotels.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <authentication xmlns="http://xmlota.wspan.com/webservice/">
      <userid>string</userid>
      <password>string</password>
    </authentication>
  </soap12:Header>
  <soap12:Body>
    <OTA_HotelBookingRuleRQ xmlns="http://www.opentravel.org/OTA/2003/05">
      <RuleMessage ChainCode="string" BrandCode="string" HotelCode="string" HotelCityCode="string" HotelName="string" HotelCodeContext="string" ChainName="string" BrandName="string">
        <StatusApplication Start="string" Duration="string" End="string" RatePlanType="string" RatePlanCode="string" RatePlanID="string" RatePlanQualifier="boolean" PromotionCode="string" PromotionVendorCode="string" RatePlanCategory="string" InvCodeApplication="string" InvCode="string" InvType="string" InvTypeCode="string" IsRoom="boolean" NumberOfUnits="integer" />
        <GuestCounts IsPerRoom="boolean">
          <GuestCount AgeQualifyingCode="string" Age="integer" Count="integer" />
          <GuestCount AgeQualifyingCode="string" Age="integer" Count="integer" />
        </GuestCounts>
        <HotelReservationIDs>
          <HotelReservationID ResID_Type="string" ResID_Value="string" ResID_Source="string" ResID_SourceContext="string" ResID_Date="dateTime" ForGuest="boolean" ResGuestRPH="string" CancelOriginatorCode="string" CancellationDate="dateTime" />
          <HotelReservationID ResID_Type="string" ResID_Value="string" ResID_Source="string" ResID_SourceContext="string" ResID_Date="dateTime" ForGuest="boolean" ResGuestRPH="string" CancelOriginatorCode="string" CancellationDate="dateTime" />
        </HotelReservationIDs>
        <RuleCategories>
          <RuleCategory Name="string" Number="nonNegativeInteger" />
          <RuleCategory Name="string" Number="nonNegativeInteger" />
        </RuleCategories>
      </RuleMessage>
    </OTA_HotelBookingRuleRQ>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <OTA_HotelBookingRuleRS TransactionStatusCode="" xmlns="http://www.opentravel.org/OTA/2003/05" />
  </soap12:Body>
</soap12:Envelope>