Skip to content

Instantly share code, notes, and snippets.

@madaarya
Created November 10, 2020 22:55
Show Gist options
  • Save madaarya/7b4b26eb4fe5b0a0f593e48bb3857e32 to your computer and use it in GitHub Desktop.
Save madaarya/7b4b26eb4fe5b0a0f593e48bb3857e32 to your computer and use it in GitHub Desktop.
Lookup On Request Booking - Bonotel
<- "POST /bonotelapps/bonotel/reservation/LookupReservation.do HTTP/1.1\r\nContent-Type: application/xml; charset=utf-8\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: xmltest.bonotel.com\r\nContent-Length: 273\r\n\r\n"
<- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lookupReservationRequest timestamp=\"20201111T05:52:44\">\n <control>\n <userName>PleasureVTest_xml</userName>\n <passWord>dY35D5v4UMhjUv</passWord>\n </control>\n <referenceNo>R601991820X</referenceNo>\n</lookupReservationRequest>\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Date: Tue, 10 Nov 2020 22:52:44 GMT\r\n"
-> "Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 mod_jk/1.2.42\r\n"
-> "X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5\r\n"
-> "Vary: Accept-Encoding,User-Agent\r\n"
-> "Content-Type: text/xml;charset=utf-8\r\n"
-> "Content-Length: 637\r\n"
-> "Connection: close\r\n"
-> "Content-Encoding: gzip\r\n"
-> "Set-Cookie: JSESSIONID=0CFE5986537B752A04696090FCE460E1.java_xml_n2; Path=/\r\n"
<?xml version="1.0" encoding="utf-8" ?>
<lookupReservationResponse status="Y">
<reservationDetails>
<referenceNo>R601991820X</referenceNo>
<tourOperatorName>Pleasure In Vegas</tourOperatorName>
<tourOperatorOrderNumber/>
<hotelCode>9379</hotelCode>
<hotelName>Mardi Gras Hotel and Casino</hotelName>
<reservationSource>Xml</reservationSource>
<reservationStatus>Normal</reservationStatus>
<cancellationInfo>
<cancellationNo/>
<cancellationFee/>
</cancellationInfo>
<confirmationType>REQ</confirmationType>
<reservationDate>09-Nov-2020</reservationDate>
<checkIn>12-Nov-2020</checkIn>
<checkOut>13-Nov-2020</checkOut>
<noOfRooms>1</noOfRooms>
<noOfNights>1</noOfNights>
<totalNoOfAdults>2</totalNoOfAdults>
<totalNoOfChildren>0</totalNoOfChildren>
<total currency="USD">50.76</total>
<totalTax currency="USD">0.00</totalTax>
<roomData>
<roomNo>1</roomNo>
<roomResNo>59878755</roomResNo>
<roomCode>246789</roomCode>
<roomType>Run of House</roomType>
<roomTypeCode>444</roomTypeCode>
<bedType>Double</bedType>
<bedTypeCode>10</bedTypeCode>
<ratePlan>Room Only</ratePlan>
<ratePlanCode>1</ratePlanCode>
<noOfAdults>2</noOfAdults>
<noOfChildren>0</noOfChildren>
<occupancy>
<guest>
<title>Mr/Mrs</title>
<firstName>mada</firstName>
<lastName>sovia</lastName>
</guest>
</occupancy>
</roomData>
<comment><customer>lorwm</customer></comment>
</reservationDetails>
</lookupReservationResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment