PerfectXML
Click here for a complete list of operations.
HotelInformation
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 /perfectxml.asmx HTTP/1.1 Host: webservices.perfectibe.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservices.perfectibe.com/HotelInformation" <?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> <HotelInformation xmlns="http://webservices.perfectibe.com/"> <HotelInformationRQ> <Authentication> <UserName>string</UserName> <Password>string</Password> <WebSiteID>string</WebSiteID> <APIKey>string</APIKey> <APIRev>string</APIRev> <UserID>string</UserID> <UserHostAddress>string</UserHostAddress> <UserAgent>string</UserAgent> <UserHostName>string</UserHostName> </Authentication> <HotelID>string</HotelID> <HotelSource>string</HotelSource> <StarRating>string</StarRating> <CatalogOnly>string</CatalogOnly> </HotelInformationRQ> </HotelInformation> </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> <HotelInformationResponse xmlns="http://webservices.perfectibe.com/"> <HotelInformationResult> <Errors> <Code>string</Code> <Description>string</Description> </Errors> <Hotels> <HotelDetails> <HotelID>string</HotelID> <HotelName>string</HotelName> <HotelLocationDescription>string</HotelLocationDescription> <Address xsi:nil="true" /> <Airports xsi:nil="true" /> <Latitude>string</Latitude> <Longitude>string</Longitude> <Phone>string</Phone> <Fax>string</Fax> <EMail>string</EMail> <Website>string</Website> <Category>string</Category> <Rating xsi:nil="true" /> <Rates xsi:nil="true" /> <HotelRoomCount>string</HotelRoomCount> <HotelFloorCount>string</HotelFloorCount> <CheckInTime>string</CheckInTime> <CheckOutTime>string</CheckOutTime> <HotelInformation>string</HotelInformation> <AreaInformation>string</AreaInformation> <Amenities xsi:nil="true" /> <Descriptions xsi:nil="true" /> </HotelDetails> <HotelDetails> <HotelID>string</HotelID> <HotelName>string</HotelName> <HotelLocationDescription>string</HotelLocationDescription> <Address xsi:nil="true" /> <Airports xsi:nil="true" /> <Latitude>string</Latitude> <Longitude>string</Longitude> <Phone>string</Phone> <Fax>string</Fax> <EMail>string</EMail> <Website>string</Website> <Category>string</Category> <Rating xsi:nil="true" /> <Rates xsi:nil="true" /> <HotelRoomCount>string</HotelRoomCount> <HotelFloorCount>string</HotelFloorCount> <CheckInTime>string</CheckInTime> <CheckOutTime>string</CheckOutTime> <HotelInformation>string</HotelInformation> <AreaInformation>string</AreaInformation> <Amenities xsi:nil="true" /> <Descriptions xsi:nil="true" /> </HotelDetails> </Hotels> </HotelInformationResult> </HotelInformationResponse> </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 /perfectxml.asmx HTTP/1.1 Host: webservices.perfectibe.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> <HotelInformation xmlns="http://webservices.perfectibe.com/"> <HotelInformationRQ> <Authentication> <UserName>string</UserName> <Password>string</Password> <WebSiteID>string</WebSiteID> <APIKey>string</APIKey> <APIRev>string</APIRev> <UserID>string</UserID> <UserHostAddress>string</UserHostAddress> <UserAgent>string</UserAgent> <UserHostName>string</UserHostName> </Authentication> <HotelID>string</HotelID> <HotelSource>string</HotelSource> <StarRating>string</StarRating> <CatalogOnly>string</CatalogOnly> </HotelInformationRQ> </HotelInformation> </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> <HotelInformationResponse xmlns="http://webservices.perfectibe.com/"> <HotelInformationResult> <Errors> <Code>string</Code> <Description>string</Description> </Errors> <Hotels> <HotelDetails> <HotelID>string</HotelID> <HotelName>string</HotelName> <HotelLocationDescription>string</HotelLocationDescription> <Address xsi:nil="true" /> <Airports xsi:nil="true" /> <Latitude>string</Latitude> <Longitude>string</Longitude> <Phone>string</Phone> <Fax>string</Fax> <EMail>string</EMail> <Website>string</Website> <Category>string</Category> <Rating xsi:nil="true" /> <Rates xsi:nil="true" /> <HotelRoomCount>string</HotelRoomCount> <HotelFloorCount>string</HotelFloorCount> <CheckInTime>string</CheckInTime> <CheckOutTime>string</CheckOutTime> <HotelInformation>string</HotelInformation> <AreaInformation>string</AreaInformation> <Amenities xsi:nil="true" /> <Descriptions xsi:nil="true" /> </HotelDetails> <HotelDetails> <HotelID>string</HotelID> <HotelName>string</HotelName> <HotelLocationDescription>string</HotelLocationDescription> <Address xsi:nil="true" /> <Airports xsi:nil="true" /> <Latitude>string</Latitude> <Longitude>string</Longitude> <Phone>string</Phone> <Fax>string</Fax> <EMail>string</EMail> <Website>string</Website> <Category>string</Category> <Rating xsi:nil="true" /> <Rates xsi:nil="true" /> <HotelRoomCount>string</HotelRoomCount> <HotelFloorCount>string</HotelFloorCount> <CheckInTime>string</CheckInTime> <CheckOutTime>string</CheckOutTime> <HotelInformation>string</HotelInformation> <AreaInformation>string</AreaInformation> <Amenities xsi:nil="true" /> <Descriptions xsi:nil="true" /> </HotelDetails> </Hotels> </HotelInformationResult> </HotelInformationResponse> </soap12:Body> </soap12:Envelope>