ChannelManager
Click here for a complete list of operations.
ManageHotel
Manages the hotel data.
- ManageHotelRequest.Credentials - valid hotel credentials for Update or Delete operation. For Insert operation use another, admin credentials provided by support@yieldplanet.com
- ManageHotelRequest.Hotel.UserEmail - used only at Insert operation: the username of the hotel credentials. Should be a valid email address
- ManageHotelRequest.Hotel.UserPassword - used only at Insert operation: the password of the hotel credentials
- ManageHotelResponse.HotelId - after Insert operation, returns id of the hotel, that should be pass by ManageHotelRequest.Hotel.Id and by ManageHotelRequest.Credentials.HotelId for Update or Delete operation
- ManageHotelResponse.TOLHotelCode - the code of the hotel that is returned at the booking engine at http://ha.yieldplanet.com/xmlRes/ws.asmx
Test
The test form is only available for requests from the local machine.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 /XmlServices/ChannelManager/v3.6.asmx HTTP/1.1
Host: secure.yieldplanet.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "XmlServices/ManageHotel"
<?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>
<ManageHotel xmlns="XmlServices">
<request>
<Credentials>
<HotelId>int</HotelId>
</Credentials>
<Operation>Insert or Update or Delete</Operation>
<Hotel>
<Name>string</Name>
<City>string</City>
<CountryCode>string</CountryCode>
<Street>string</Street>
<PostCode>string</PostCode>
<NIP>string</NIP>
<Email>string</Email>
<Phone>string</Phone>
<Fax>string</Fax>
<Currency>string</Currency>
<ContactPerson>
<Name>string</Name>
<Position>string</Position>
<Phone>string</Phone>
<Email>string</Email>
</ContactPerson>
</Hotel>
<Tag>string</Tag>
</request>
</ManageHotel>
</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>
<ManageHotelResponse xmlns="XmlServices">
<ManageHotelResult>
<Status>
<Success>boolean</Success>
<WarningMsg>string</WarningMsg>
<ErrorMsg>string</ErrorMsg>
<ErrorId>int</ErrorId>
<TimeStamp>dateTime</TimeStamp>
</Status>
<HotelId>int</HotelId>
</ManageHotelResult>
</ManageHotelResponse>
</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 /XmlServices/ChannelManager/v3.6.asmx HTTP/1.1
Host: secure.yieldplanet.com
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>
<ManageHotel xmlns="XmlServices">
<request>
<Credentials>
<HotelId>int</HotelId>
</Credentials>
<Operation>Insert or Update or Delete</Operation>
<Hotel>
<Name>string</Name>
<City>string</City>
<CountryCode>string</CountryCode>
<Street>string</Street>
<PostCode>string</PostCode>
<NIP>string</NIP>
<Email>string</Email>
<Phone>string</Phone>
<Fax>string</Fax>
<Currency>string</Currency>
<ContactPerson>
<Name>string</Name>
<Position>string</Position>
<Phone>string</Phone>
<Email>string</Email>
</ContactPerson>
</Hotel>
<Tag>string</Tag>
</request>
</ManageHotel>
</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>
<ManageHotelResponse xmlns="XmlServices">
<ManageHotelResult>
<Status>
<Success>boolean</Success>
<WarningMsg>string</WarningMsg>
<ErrorMsg>string</ErrorMsg>
<ErrorId>int</ErrorId>
<TimeStamp>dateTime</TimeStamp>
</Status>
<HotelId>int</HotelId>
</ManageHotelResult>
</ManageHotelResponse>
</soap12:Body>
</soap12:Envelope>