2804
правки
Изменения
Перейти к навигации
Перейти к поиску
→Статика по отелям и апартаментам
=== Статика по отелям и апартаментам ===
Этот запрос будет использоваться для выгрузки статичной информации по одному или нескольким отелям.
'''WSDL''' (тестовый сервер): http://tst.nemo-ibe.com/wsdev/wsdl.php?for=HotelStatic
==== Запрос ====
<pre>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ver="http://tst.nemo-ibe.com/wsdev/?version%3D1.0%26for%3DHotelStatic">
<soapenv:Header/>
<soapenv:Body>
<ver:hotels>
<RequestBin>
<Request>
<HotelStatic>
<CityId>58166</CityId>
</HotelStatic>
</Request>
<Source>
<ClientId></ClientId>
<APIKey></APIKey>
<Language>ru</Language>
<Currency>RUB</Currency>
</Source>
</RequestBin>
</ver:hotels>
</soapenv:Body>
</soapenv:Envelope>
</pre>
==== Ответ ====
<pre>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://tst.nemo-ibe.com/wsdev/?version%3D1.0%26for%3DHotelStatic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:hotelsResponse>
<ResponseBin>
<Response>
<HotelStatic>
<Hotels>
<Hotel Id="271714" Apartment="false">
<CityId>58166</CityId>
<CountryId>643</CountryId>
<Latitude xsi:nil="true"/>
<Longitude xsi:nil="true"/>
<Rating>3</Rating>
<Floors xsi:nil="true"/>
<Data>
<Info>
<Name>* Azimut (business)</Name>
<Area xsi:nil="true"/>
<Location>Within city</Location>
<Desc>This 3 star hotel is located within the city of St Petersburg.</Desc>
<Address>43/1 Lermoutovsky Prospect, St Petersburg, 190103</Address>
</Info>
</Data>
<Phones>
<Phone>812 7402640</Phone>
</Phones>
<Fax>812 2518890</Fax>
<Images/>
</Hotel>
<Hotel Id="159535" Apartment="false">
<CityId>58166</CityId>
<CountryId>643</CountryId>
<Latitude>59.935011</Latitude>
<Longitude>30.309284</Longitude>
<Rating>5</Rating>
<Floors xsi:nil="true"/>
<Data>
<Info>
<Name>W St.petersburg</Name>
<Area xsi:nil="true"/>
<Location>City centre</Location>
<Desc>This 5 star hotel is located in the city centre of St Petersburg and was established in 2011. It is close to the St.Isaac's Cathedral and the nearest station is Admiralteyskaya station. The Hotel has a restaurant, 2 bars, a conference room, a coffee shop, an indoor swimming pool and a fitness centre/gym. All 137 rooms are equipped with minibar, hairdryer, safe, trouser press and air conditioning.</Desc>
<Address>6 Voznesensky Prospect, St. Petersburg, 190000, St Petersburg, Russia</Address>
</Info>
</Data>
<Phones/>
<Fax>+7 812 6106160</Fax>
<Images>
<Image>
<Path>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/lr/ext.jpg</Path>
<Icon>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/ext-t.jpg</Icon>
</Image>
<Image>
<Path>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/lr/unknown.jpg</Path>
<Icon>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/unknown-t.jpg</Icon>
</Image>
<Image>
<Path>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/lr/bed room.jpg</Path>
<Icon>https://www.miki.co.uk/live/hotel/mikiNet/image/v1.0/RU/44018/406/bed room-t.jpg</Icon>
</Image>
</Images>
</Hotel>
...
</Hotels>
</HotelStatic>
</Response>
</ResponseBin>
</ns1:hotelsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</pre>
==== Ошибки ====