Sample with Multiple Properties

Submits multiple property requests in a single XML call.

Note: Up to 20 properties can be included in a single call if the <Description> node is present:

    <Description>

      <Property/>

    </Description>

For more properties, eliminate the <Description> node in the request. Up to 50 properties is ideal; any more than this may result in a time-out depending on traffic.

 

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 first property ID. For this property, the user wants signature photos that are specified as small.

    <Property Id="00109" SignaturePhoto="true" SignatureSize="S - Small" SignatureSizeRange="E- Exact">

    </Property>

Identifies the second property ID. For this property, the user wants photos that are specified as medium.

    <Property Id="00140">

      <Photo Size="M - Medium" SizeRange="E- Exact"/>

    </Property>

Identifies the third property ID. For this property, the user wants photos that are the specified as extra large.

    <Property Id="00162">

      <Photo Size="E - Extra Large" SizeRange="E- Exact"/>

    </Property>

Ends the Image Viewer request.

  </Properties>

</ImageSetRequest>

Response

Explanation

Code

 

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

<RetrievePhotoInformationReturn>

 

<ImageSetResponse>

Property ID and photo information for the first request. The first property contains the URL for the small signature image.

<Property Id="00109">

<Photos>

<Photo Caption="Exterior" Height="110" Signature="true" Size="S" Type="EXT" Width="200">

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

</Photo>

</Photos>

</Property>

The property ID and photos for the second request. The second property contains all photos of size medium.

Note: Secured response reference URLs will be https:

 

<Property Id="00140">

<Photos>

<Photo Caption="Exterior" Height="187" Size="M" Type="EXT" Width="250">

<URL>http://63.75.186.51/ImageServer/
0/00140/00140_EXT_01_M.jpg</URL>

</Photo>

<Photo Caption="Interior" Height="187" Size="M" Type="LOBBY" Width="250">

<URL>http://63.75.186.51/ImageServer/
0/00140/00140_LOBBY_01_M.jpg</URL>

</Photo>

<Photo Caption="Dining" Height="250" Size="M" Type="REST" Width="171">

<URL>http://63.75.186.51/ImageServer/
0/00140/00140_REST_01_M.jpg</URL>

</Photo>

<Photo Caption="Room" Height="187" Size="M" Type="ROOM" Width="250">

<URL>http://63.75.186.51/ImageServer/
0/00140/00140_ROOM_01_M.jpg</URL>

</Photo>

</Photos>

</Property>

The third request was for extra large photos. The error Photos not found indicates hat there are no extra large photos available for this property.

<Property Id="00162">

<Photos/>

<Errors>

<Error>Photos not found</Error>

</Errors>

</Property>

Ends the response.

</ImageSetResponse>

</RetrievePhotoInformationReturn>

</RetrievePhotoInformationResponse>