Sample Image with Size

The following sample requests images of a specific size for a property.

Explanation

Code

Identifies the Image Viewer Web Service location.

<ImageSetRequest xmlns="http://www.galileo.com/GI_GDS">

Optional: For a secured reference in the response, insert the ReturnHTTPSRef parameter.

<ImageSetRequest xmlns="http://www.galileo.com/GI_GDS" ReturnHTTPSRef=boolean>

Begins the Image Viewer request.

  <Properties>

Identifies the property ID.
 

    <Property Id="02718">

Specifies that only photos of size small or smaller (e.g., thumbnail or intermediate) should be returned. Only photos of size S, T, or I will be returned.

The following are valid size requests:

A - All
T - Thumbnail
I - Minimum
S - Small
M - Medium
L - Large
E - Extra Large

Note: These dimensions are approximate. Actual image size may vary by property.

      <Photo Size="S - Small" SizeRange="L - Less than or equal"/>

Ends the Image Viewer request.

    </Property>

  </Properties>

</ImageSetRequest>

Response

Explanation

Code

 

<RetrievePhotoInformationResponse
xmlns="http://webservices.galileo.com/HotelImage">
<RetrievePhotoInformationReturn>

 

<ImageSetResponse>

Property ID for which images were requested.

<Property Id="02718">

The first photo response contains:

  • The caption that goes with the photo

  • Photo size (minimal)

  • Photo type (EXT = Exterior)

  • Width

The URL gives the location of the photo.

Note: Secured response reference URLs will be https:

<Photos>

<Photo Caption="Exterior" Height="110" Size="I" Type="EXT" Width="150">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_EXT_01_I.jpg</URL>

</Photo>

The remaining images that match the request.

<Photo Caption="Exterior" Height="146" Size="S" Type="EXT" Width="200">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_EXT_01_S.jpg</URL>

</Photo>

<Photo Caption="Exterior" Height="73" Size="T" Type="EXT" Width="100">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_EXT_01_T.jpg</URL>

</Photo>

<Photo Caption="Room" Height="110" Size="I" Type="ROOM" Width="150">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_ROOM_01_I.jpg</URL>

</Photo>

<Photo Caption="Room" Height="146" Size="S" Type="ROOM" Width="200">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_ROOM_01_S.jpg</URL>

</Photo>

<Photo Caption="Room" Height="73" Size="T" Type="ROOM" Width="100">

<URL>http://63.75.186.51/ImageServer/
0/02718/02718_ROOM_01_T.jpg</URL>

</Photo>

</Photos>

Ends the response.

</Property>

</ImageSetResponse>

</RetrievePhotoInformationReturn>

</RetrievePhotoInformationResponse>