StaticMarketSearch


Click here for a complete list of operations.

Book

Test

The test form is only available for methods with primitive types as parameters.

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 /15/SOAP/StaticMarketSearch.asmx HTTP/1.1
Host: xml.sunhotels.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://xml.sunhotels.net/15/Book"

<?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>
    <Book xmlns="http://xml.sunhotels.net/15/">
      <userName>string</userName>
      <password>string</password>
      <currency>string</currency>
      <language>string</language>
      <email>string</email>
      <checkInDate>dateTime</checkInDate>
      <checkOutDate>dateTime</checkOutDate>
      <roomId>int</roomId>
      <rooms>int</rooms>
      <adults>int</adults>
      <children>int</children>
      <infant>int</infant>
      <yourRef>string</yourRef>
      <specialrequest>string</specialrequest>
      <mealId>int</mealId>
      <adultsList>
        <Adult />
        <Adult />
      </adultsList>
      <childrenList>
        <Child>
          <Age>int</Age>
        </Child>
        <Child>
          <Age>int</Age>
        </Child>
      </childrenList>
      <paymentMethodId>int</paymentMethodId>
      <creditCardType>string</creditCardType>
      <creditCardNumber>string</creditCardNumber>
      <creditCardHolder>string</creditCardHolder>
      <creditCardCVV2>string</creditCardCVV2>
      <creditCardExpYear>int</creditCardExpYear>
      <creditCardExpMonth>int</creditCardExpMonth>
      <customerEmail>string</customerEmail>
      <invoiceRef>string</invoiceRef>
      <customerCountry>string</customerCountry>
      <b2c>string</b2c>
    </Book>
  </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>
    <BookResponse xmlns="http://xml.sunhotels.net/15/">
      <bookResult>
        <booking>
          <bookingnumber>string</bookingnumber>
          <hotel.id>int</hotel.id>
          <hotel.name>string</hotel.name>
          <hotel.address>string</hotel.address>
          <hotel.phone>string</hotel.phone>
          <numberofrooms>string</numberofrooms>
          <room.type>string</room.type>
          <room.englishType>string</room.englishType>
          <mealId>int</mealId>
          <meal>string</meal>
          <mealLabel>string</mealLabel>
          <englishMeal>string</englishMeal>
          <englishMealLabel>string</englishMealLabel>
          <adultGuests>
            <adultGuest xsi:nil="true" />
            <adultGuest xsi:nil="true" />
          </adultGuests>
          <childrenGuests>
            <childGuest xsi:nil="true" />
            <childGuest xsi:nil="true" />
          </childrenGuests>
          <checkindate>dateTime</checkindate>
          <checkoutdate>dateTime</checkoutdate>
          <prices>
            <price xsi:nil="true" />
            <price xsi:nil="true" />
          </prices>
          <currency>string</currency>
          <bookingdate>dateTime</bookingdate>
          <bookingdate.timezone>string</bookingdate.timezone>
          <cancellationpolicies>
            <text>string</text>
          </cancellationpolicies>
          <cancellationpolicies>
            <text>string</text>
          </cancellationpolicies>
          <earliestNonFreeCancellationDate.CET>dateTime</earliestNonFreeCancellationDate.CET>
          <earliestNonFreeCancellationDate.Local>dateTime</earliestNonFreeCancellationDate.Local>
          <yourref>string</yourref>
          <voucher>string</voucher>
          <bookedBy>string</bookedBy>
          <transferbooked>int</transferbooked>
          <paymentmethod id="int" name="string">
            <property xsi:nil="true" />
            <property xsi:nil="true" />
          </paymentmethod>
          <hotelNotes>
            <hotelNote xsi:nil="true" />
            <hotelNote xsi:nil="true" />
          </hotelNotes>
          <englishHotelNotes>
            <englishHotelNote xsi:nil="true" />
            <englishHotelNote xsi:nil="true" />
          </englishHotelNotes>
          <roomNotes>
            <roomNote xsi:nil="true" />
            <roomNote xsi:nil="true" />
          </roomNotes>
          <englishRoomNotes>
            <englishRoomNote xsi:nil="true" />
            <englishRoomNote xsi:nil="true" />
          </englishRoomNotes>
          <invoiceref>string</invoiceref>
        </booking>
      </bookResult>
    </BookResponse>
  </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 /15/SOAP/StaticMarketSearch.asmx HTTP/1.1
Host: xml.sunhotels.net
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>
    <Book xmlns="http://xml.sunhotels.net/15/">
      <userName>string</userName>
      <password>string</password>
      <currency>string</currency>
      <language>string</language>
      <email>string</email>
      <checkInDate>dateTime</checkInDate>
      <checkOutDate>dateTime</checkOutDate>
      <roomId>int</roomId>
      <rooms>int</rooms>
      <adults>int</adults>
      <children>int</children>
      <infant>int</infant>
      <yourRef>string</yourRef>
      <specialrequest>string</specialrequest>
      <mealId>int</mealId>
      <adultsList>
        <Adult />
        <Adult />
      </adultsList>
      <childrenList>
        <Child>
          <Age>int</Age>
        </Child>
        <Child>
          <Age>int</Age>
        </Child>
      </childrenList>
      <paymentMethodId>int</paymentMethodId>
      <creditCardType>string</creditCardType>
      <creditCardNumber>string</creditCardNumber>
      <creditCardHolder>string</creditCardHolder>
      <creditCardCVV2>string</creditCardCVV2>
      <creditCardExpYear>int</creditCardExpYear>
      <creditCardExpMonth>int</creditCardExpMonth>
      <customerEmail>string</customerEmail>
      <invoiceRef>string</invoiceRef>
      <customerCountry>string</customerCountry>
      <b2c>string</b2c>
    </Book>
  </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>
    <BookResponse xmlns="http://xml.sunhotels.net/15/">
      <bookResult>
        <booking>
          <bookingnumber>string</bookingnumber>
          <hotel.id>int</hotel.id>
          <hotel.name>string</hotel.name>
          <hotel.address>string</hotel.address>
          <hotel.phone>string</hotel.phone>
          <numberofrooms>string</numberofrooms>
          <room.type>string</room.type>
          <room.englishType>string</room.englishType>
          <mealId>int</mealId>
          <meal>string</meal>
          <mealLabel>string</mealLabel>
          <englishMeal>string</englishMeal>
          <englishMealLabel>string</englishMealLabel>
          <adultGuests>
            <adultGuest xsi:nil="true" />
            <adultGuest xsi:nil="true" />
          </adultGuests>
          <childrenGuests>
            <childGuest xsi:nil="true" />
            <childGuest xsi:nil="true" />
          </childrenGuests>
          <checkindate>dateTime</checkindate>
          <checkoutdate>dateTime</checkoutdate>
          <prices>
            <price xsi:nil="true" />
            <price xsi:nil="true" />
          </prices>
          <currency>string</currency>
          <bookingdate>dateTime</bookingdate>
          <bookingdate.timezone>string</bookingdate.timezone>
          <cancellationpolicies>
            <text>string</text>
          </cancellationpolicies>
          <cancellationpolicies>
            <text>string</text>
          </cancellationpolicies>
          <earliestNonFreeCancellationDate.CET>dateTime</earliestNonFreeCancellationDate.CET>
          <earliestNonFreeCancellationDate.Local>dateTime</earliestNonFreeCancellationDate.Local>
          <yourref>string</yourref>
          <voucher>string</voucher>
          <bookedBy>string</bookedBy>
          <transferbooked>int</transferbooked>
          <paymentmethod id="int" name="string">
            <property xsi:nil="true" />
            <property xsi:nil="true" />
          </paymentmethod>
          <hotelNotes>
            <hotelNote xsi:nil="true" />
            <hotelNote xsi:nil="true" />
          </hotelNotes>
          <englishHotelNotes>
            <englishHotelNote xsi:nil="true" />
            <englishHotelNote xsi:nil="true" />
          </englishHotelNotes>
          <roomNotes>
            <roomNote xsi:nil="true" />
            <roomNote xsi:nil="true" />
          </roomNotes>
          <englishRoomNotes>
            <englishRoomNote xsi:nil="true" />
            <englishRoomNote xsi:nil="true" />
          </englishRoomNotes>
          <invoiceref>string</invoiceref>
        </booking>
      </bookResult>
    </BookResponse>
  </soap12:Body>
</soap12:Envelope>