Getting Hotels

To get hotels connected with one user send following XML request to API base url.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.opentravel.org/OTA/2003/05" 
xmlns:ns2="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in-
stance">
  <SOAP-ENV:Header>
    <ns2:Security>
      <ns2:UsernameToken>
        <ns2:Username>username</ns2:Username>
        <ns2:Password xsi:type="ns2:http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</ns2:Password>
      </ns2:UsernameToken>
    </ns2:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:OTA_HotelSearchRQ EchoToken="MYPMS001" TimeStamp="2008-12-03T08:05:40+00:00" Version="1.006" ResponseType="PropertyList">
    </ns1:OTA_HotelSearchRQ>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

If request was successfull you should retrive XML like this

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns2="http://www.opentravel.org/OTA/2003/05">
<script/>
<SOAP-ENV:Body>
<OTA_HotelSearchRS Version="1.000" EchoToken="MYPMS001" TimeStamp="2024-06-17T10:13:15+02:00">
<Success/>
<Properties>
<Property HotelCode="1" ChainCode="1" HotelName="Hotel Bellevue"/>
</Properties>
</OTA_HotelSearchRS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Previous Article

Introduction

Next Article

Getting Rooms