StaticMarketSearch
Click here for a complete list of operations.
Search
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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/PostGet/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/Search"
<?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>
<Search xmlns="http://xml.sunhotels.net/15/">
<userName>string</userName>
<password>string</password>
<language>string</language>
<currencies>string</currencies>
<checkInDate>dateTime</checkInDate>
<checkOutDate>dateTime</checkOutDate>
<numberOfRooms>int</numberOfRooms>
<destination>string</destination>
<destinationID>string</destinationID>
<hotelIDs>string</hotelIDs>
<resortIDs>string</resortIDs>
<accommodationTypes>string</accommodationTypes>
<numberOfAdults>int</numberOfAdults>
<numberOfChildren>int</numberOfChildren>
<infant>int</infant>
<sortBy>string</sortBy>
<sortOrder>string</sortOrder>
<exactDestinationMatch>string</exactDestinationMatch>
<blockSuperdeal>string</blockSuperdeal>
<mealIds>string</mealIds>
<showCoordinates>string</showCoordinates>
<showReviews>string</showReviews>
<referencePointLatitude>string</referencePointLatitude>
<referencePointLongitude>string</referencePointLongitude>
<maxDistanceFromReferencePoint>string</maxDistanceFromReferencePoint>
<minStarRating>string</minStarRating>
<maxStarRating>string</maxStarRating>
<featureIds>string</featureIds>
<minPrice>string</minPrice>
<maxPrice>string</maxPrice>
<themeIds>string</themeIds>
<excludeSharedRooms>string</excludeSharedRooms>
<excludeSharedFacilities>string</excludeSharedFacilities>
<prioritizedHotelIds>string</prioritizedHotelIds>
<totalRoomsInBatch>string</totalRoomsInBatch>
<paymentMethodId>string</paymentMethodId>
<customerCountry>string</customerCountry>
<b2c>string</b2c>
</Search>
</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>
<SearchResponse xmlns="http://xml.sunhotels.net/15/">
<searchresult>
<hotels>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes xsi:nil="true" />
<review xsi:nil="true" />
<notes xsi:nil="true" />
<distance>double</distance>
<codes xsi:nil="true" />
</hotel>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes xsi:nil="true" />
<review xsi:nil="true" />
<notes xsi:nil="true" />
<distance>double</distance>
<codes xsi:nil="true" />
</hotel>
</hotels>
</searchresult>
</SearchResponse>
</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/PostGet/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>
<Search xmlns="http://xml.sunhotels.net/15/">
<userName>string</userName>
<password>string</password>
<language>string</language>
<currencies>string</currencies>
<checkInDate>dateTime</checkInDate>
<checkOutDate>dateTime</checkOutDate>
<numberOfRooms>int</numberOfRooms>
<destination>string</destination>
<destinationID>string</destinationID>
<hotelIDs>string</hotelIDs>
<resortIDs>string</resortIDs>
<accommodationTypes>string</accommodationTypes>
<numberOfAdults>int</numberOfAdults>
<numberOfChildren>int</numberOfChildren>
<infant>int</infant>
<sortBy>string</sortBy>
<sortOrder>string</sortOrder>
<exactDestinationMatch>string</exactDestinationMatch>
<blockSuperdeal>string</blockSuperdeal>
<mealIds>string</mealIds>
<showCoordinates>string</showCoordinates>
<showReviews>string</showReviews>
<referencePointLatitude>string</referencePointLatitude>
<referencePointLongitude>string</referencePointLongitude>
<maxDistanceFromReferencePoint>string</maxDistanceFromReferencePoint>
<minStarRating>string</minStarRating>
<maxStarRating>string</maxStarRating>
<featureIds>string</featureIds>
<minPrice>string</minPrice>
<maxPrice>string</maxPrice>
<themeIds>string</themeIds>
<excludeSharedRooms>string</excludeSharedRooms>
<excludeSharedFacilities>string</excludeSharedFacilities>
<prioritizedHotelIds>string</prioritizedHotelIds>
<totalRoomsInBatch>string</totalRoomsInBatch>
<paymentMethodId>string</paymentMethodId>
<customerCountry>string</customerCountry>
<b2c>string</b2c>
</Search>
</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>
<SearchResponse xmlns="http://xml.sunhotels.net/15/">
<searchresult>
<hotels>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes xsi:nil="true" />
<review xsi:nil="true" />
<notes xsi:nil="true" />
<distance>double</distance>
<codes xsi:nil="true" />
</hotel>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes xsi:nil="true" />
<review xsi:nil="true" />
<notes xsi:nil="true" />
<distance>double</distance>
<codes xsi:nil="true" />
</hotel>
</hotels>
</searchresult>
</SearchResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /15/PostGet/StaticMarketSearch.asmx/Search?userName=string&password=string&language=string¤cies=string&checkInDate=string&checkOutDate=string&numberOfRooms=string&destination=string&destinationID=string&hotelIDs=string&resortIDs=string&accommodationTypes=string&numberOfAdults=string&numberOfChildren=string&infant=string&sortBy=string&sortOrder=string&exactDestinationMatch=string&blockSuperdeal=string&mealIds=string&showCoordinates=string&showReviews=string&referencePointLatitude=string&referencePointLongitude=string&maxDistanceFromReferencePoint=string&minStarRating=string&maxStarRating=string&featureIds=string&minPrice=string&maxPrice=string&themeIds=string&excludeSharedRooms=string&excludeSharedFacilities=string&prioritizedHotelIds=string&totalRoomsInBatch=string&paymentMethodId=string&customerCountry=string&b2c=string HTTP/1.1 Host: xml.sunhotels.net
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<searchresult xmlns="http://xml.sunhotels.net/15/">
<hotels>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes>
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</roomtypes>
<review>
<rating>decimal</rating>
<pricevalue>decimal</pricevalue>
<count>int</count>
<recommendCount>int</recommendCount>
</review>
<notes>
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</notes>
<distance>double</distance>
<codes>
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</codes>
</hotel>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes>
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</roomtypes>
<review>
<rating>decimal</rating>
<pricevalue>decimal</pricevalue>
<count>int</count>
<recommendCount>int</recommendCount>
</review>
<notes>
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</notes>
<distance>double</distance>
<codes>
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</codes>
</hotel>
</hotels>
</searchresult>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /15/PostGet/StaticMarketSearch.asmx/Search HTTP/1.1 Host: xml.sunhotels.net Content-Type: application/x-www-form-urlencoded Content-Length: length userName=string&password=string&language=string¤cies=string&checkInDate=string&checkOutDate=string&numberOfRooms=string&destination=string&destinationID=string&hotelIDs=string&resortIDs=string&accommodationTypes=string&numberOfAdults=string&numberOfChildren=string&infant=string&sortBy=string&sortOrder=string&exactDestinationMatch=string&blockSuperdeal=string&mealIds=string&showCoordinates=string&showReviews=string&referencePointLatitude=string&referencePointLongitude=string&maxDistanceFromReferencePoint=string&minStarRating=string&maxStarRating=string&featureIds=string&minPrice=string&maxPrice=string&themeIds=string&excludeSharedRooms=string&excludeSharedFacilities=string&prioritizedHotelIds=string&totalRoomsInBatch=string&paymentMethodId=string&customerCountry=string&b2c=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<searchresult xmlns="http://xml.sunhotels.net/15/">
<hotels>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes>
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</roomtypes>
<review>
<rating>decimal</rating>
<pricevalue>decimal</pricevalue>
<count>int</count>
<recommendCount>int</recommendCount>
</review>
<notes>
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</notes>
<distance>double</distance>
<codes>
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</codes>
</hotel>
<hotel isPrioritized="boolean">
<hotel.id>int</hotel.id>
<destination_id>int</destination_id>
<resort_id>int</resort_id>
<transfer>int</transfer>
<roomtypes>
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<roomtype d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</roomtypes>
<review>
<rating>decimal</rating>
<pricevalue>decimal</pricevalue>
<count>int</count>
<recommendCount>int</recommendCount>
</review>
<notes>
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<note d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</notes>
<distance>double</distance>
<codes>
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
<code d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
</codes>
</hotel>
</hotels>
</searchresult>