WebService


Click here for a complete list of operations.

GetRoomPriceDirect

Get Room Price Direct

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 /WebService.asmx HTTP/1.1
Host: hotelbooking365.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetRoomPriceDirect"

<?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>
    <SOAPHeaderAuth xmlns="http://tempuri.org/">
      <UserName>string</UserName>
      <Password>string</Password>
    </SOAPHeaderAuth>
  </soap:Header>
  <soap:Body>
    <GetRoomPriceDirect xmlns="http://tempuri.org/">
      <objGetRoomPriceDirect>
        <requestor>
          <invoker>string</invoker>
          <operatorName>string</operatorName>
          <opClientIP>string</opClientIP>
          <languageType>string</languageType>
        </requestor>
        <channel>string</channel>
        <hotelId>int</hotelId>
        <isGetPurchasePrice>boolean</isGetPurchasePrice>
        <roomIds>
          <int>int</int>
          <int>int</int>
        </roomIds>
        <startDate>dateTime</startDate>
        <endDate>dateTime</endDate>
      </objGetRoomPriceDirect>
    </GetRoomPriceDirect>
  </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>
    <GetRoomPriceDirectResponse xmlns="http://tempuri.org/">
      <GetRoomPriceDirectResult>
        <ResponseStatus>
          <Timestamp>dateTime</Timestamp>
          <Ack>string</Ack>
          <Errors>
            <ObjError xsi:nil="true" />
            <ObjError xsi:nil="true" />
          </Errors>
          <Build />
          <Version>string</Version>
          <Extension>
            <Extension xsi:nil="true" />
            <Extension xsi:nil="true" />
          </Extension>
        </ResponseStatus>
        <resultStatus>
          <resultCode>int</resultCode>
          <resultMsg>string</resultMsg>
        </resultStatus>
        <channelRoomPrices>
          <ChannelRoomPrice>
            <channel>string</channel>
            <roomPrices xsi:nil="true" />
          </ChannelRoomPrice>
          <ChannelRoomPrice>
            <channel>string</channel>
            <roomPrices xsi:nil="true" />
          </ChannelRoomPrice>
        </channelRoomPrices>
        <roomPurchasePrices>
          <RoomPurchasePrice>
            <roomId>int</roomId>
            <effectDate>dateTime</effectDate>
            <price>double</price>
            <breakfast>int</breakfast>
            <tax>double</tax>
            <purchaseCode />
          </RoomPurchasePrice>
          <RoomPurchasePrice>
            <roomId>int</roomId>
            <effectDate>dateTime</effectDate>
            <price>double</price>
            <breakfast>int</breakfast>
            <tax>double</tax>
            <purchaseCode />
          </RoomPurchasePrice>
        </roomPurchasePrices>
      </GetRoomPriceDirectResult>
    </GetRoomPriceDirectResponse>
  </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 /WebService.asmx HTTP/1.1
Host: hotelbooking365.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>
    <SOAPHeaderAuth xmlns="http://tempuri.org/">
      <UserName>string</UserName>
      <Password>string</Password>
    </SOAPHeaderAuth>
  </soap12:Header>
  <soap12:Body>
    <GetRoomPriceDirect xmlns="http://tempuri.org/">
      <objGetRoomPriceDirect>
        <requestor>
          <invoker>string</invoker>
          <operatorName>string</operatorName>
          <opClientIP>string</opClientIP>
          <languageType>string</languageType>
        </requestor>
        <channel>string</channel>
        <hotelId>int</hotelId>
        <isGetPurchasePrice>boolean</isGetPurchasePrice>
        <roomIds>
          <int>int</int>
          <int>int</int>
        </roomIds>
        <startDate>dateTime</startDate>
        <endDate>dateTime</endDate>
      </objGetRoomPriceDirect>
    </GetRoomPriceDirect>
  </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>
    <GetRoomPriceDirectResponse xmlns="http://tempuri.org/">
      <GetRoomPriceDirectResult>
        <ResponseStatus>
          <Timestamp>dateTime</Timestamp>
          <Ack>string</Ack>
          <Errors>
            <ObjError xsi:nil="true" />
            <ObjError xsi:nil="true" />
          </Errors>
          <Build />
          <Version>string</Version>
          <Extension>
            <Extension xsi:nil="true" />
            <Extension xsi:nil="true" />
          </Extension>
        </ResponseStatus>
        <resultStatus>
          <resultCode>int</resultCode>
          <resultMsg>string</resultMsg>
        </resultStatus>
        <channelRoomPrices>
          <ChannelRoomPrice>
            <channel>string</channel>
            <roomPrices xsi:nil="true" />
          </ChannelRoomPrice>
          <ChannelRoomPrice>
            <channel>string</channel>
            <roomPrices xsi:nil="true" />
          </ChannelRoomPrice>
        </channelRoomPrices>
        <roomPurchasePrices>
          <RoomPurchasePrice>
            <roomId>int</roomId>
            <effectDate>dateTime</effectDate>
            <price>double</price>
            <breakfast>int</breakfast>
            <tax>double</tax>
            <purchaseCode />
          </RoomPurchasePrice>
          <RoomPurchasePrice>
            <roomId>int</roomId>
            <effectDate>dateTime</effectDate>
            <price>double</price>
            <breakfast>int</breakfast>
            <tax>double</tax>
            <purchaseCode />
          </RoomPurchasePrice>
        </roomPurchasePrices>
      </GetRoomPriceDirectResult>
    </GetRoomPriceDirectResponse>
  </soap12:Body>
</soap12:Envelope>