HotelServices


Click here for a complete list of operations.

SearchHotel

Execute the room rates search and requested destination availability.
Executa a busca de tarifas e disponibilidade para o destino especificado.

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 /hotelservices.asmx HTTP/1.1
Host: xml.trendoperadora.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://TrendOperadora.SIG.XML.ServiceContracts/2007/09/SearchHotel"

<?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>
    <LoginHeader Domain="string" Language="string" Currency="string" RequestorID="string" SelfbookingID="int" xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">
      <AccessCode>int</AccessCode>
      <UserName>string</UserName>
      <Password>string</Password>
    </LoginHeader>
  </soap:Header>
  <soap:Body>
    <SearchHotelRequest xmlns="http://TrendOperadora.SIG.XML.ServiceContracts/2007/09">
      <DestinationId>int</DestinationId>
      <CheckIn>dateTime</CheckIn>
      <CheckOut>dateTime</CheckOut>
      <RoomsInformation>
        <RoomInfoType>
          <AdultsNum xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">short</AdultsNum>
          <ChildrenNum xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">short</ChildrenNum>
          <ChildAges xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">
            <short>short</short>
            <short>short</short>
          </ChildAges>
        </RoomInfoType>
        <RoomInfoType>
          <AdultsNum xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">short</AdultsNum>
          <ChildrenNum xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">short</ChildrenNum>
          <ChildAges xmlns="http://TrendOperadora.SIG.XML.DataTypes/2007/09">
            <short>short</short>
            <short>short</short>
          </ChildAges>
        </RoomInfoType>
      </RoomsInformation>
      <MaxAvrNightPrice>double</MaxAvrNightPrice>
      <AvailableOnly>boolean</AvailableOnly>
    </SearchHotelRequest>
  </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>
    <SearchHotelResult xmlns="http://TrendOperadora.SIG.XML.ServiceContracts/2007/09">
      <SearchHotelResult>dataset</SearchHotelResult>
    </SearchHotelResult>
  </soap:Body>
</soap:Envelope>