Booking
Click here for a complete list of operations.
GetPriceSearchXML
Description: This method brings the price lists according to selected criterias.A row in the xml returning from this method is selected and sent to GetReservationDataXML method as parameter. And reservation process gets started.
Parameters Sent
token: Key number given upon login to system
cin1: The first checkin date(>today)
cin2: The last checkin date(>today)
night1: (>0) from night
night2: (>0) to night
hotelCode: Hotel code
catName: Category code
room: if roomAndBoardGroup true then Room Group code (Code value in GetHotelRoomGroups method)
else Room code (Code value in GetHotelRoom method)
board: if roomAndBoardGroup true then Board Group code(Code value in GetHotelBoardGroup method) else
Board code(Code value in GetHotelBoard method)
arrCity: Arrival city(not compulsory to be entered for b2c) Recid value returning from GetArrCity in
Common.asmx
depCity: Departure city (not compulsory to be entered for b2c) Recid value returning from GetDepCity in
Common.asmx
town: Departure Region(not compulsory to be entered for b2c)Recid value returning from GetTown in
Common.asmx
hotelLocation: Hotel Location(not compulsory to be entered for b2c)Recid value returning from
GetHotelLocation in Common.asmx
adult: Adult number (>0)
child: Child number (>:0)
chdAge1: child age1 (>:-1) If there is no child, -1 must be entered.
chdAge2: child age2 (>:-1) If there is no child, -1 must be entered.
chdAge3: child age3 (>:-1) If there is no child, -1 must be entered.
chdAge4: child age4 (>:-1) If there is no child, -1 must be entered.
getFlightAllot: Bring plane allotment info (if it is false it doesn't bring hotel allotments)
getHotelAllot: Bring hotel allotment info (if it is false it doesn't bring hotel allotments)
packType: if it is 'O', only the packages come that have hotel price.
roomAndBoardGroup: If this parameter is sent true,group codes of room and board must be sent.
noStopSaleControl: if send true, it also gets hotels with stop sale.
errorMsg: Used to control whether any fault will occur or not.This is both returning and sent parameter
Returning Parameters
Return as Dataset in a result of searching price.SPWithEB returning from dataset shows package's price
One of the rows returning from dataset is sent to
GetReservationDatset method as parameter.
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 /tvwspaximum/Booking.asmx HTTP/1.1 Host: tivrona.tourvisio.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.tourvisio.com/GetPriceSearchXML" <?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> <GetPriceSearchXML xmlns="http://www.tourvisio.com/"> <token>string</token> <cin1>dateTime</cin1> <cin2>dateTime</cin2> <night1>int</night1> <night2>int</night2> <hotelCode>string</hotelCode> <catName>string</catName> <room>string</room> <board>string</board> <arrCity>int</arrCity> <depCity>int</depCity> <town>int</town> <hotelLocation>int</hotelLocation> <adult>int</adult> <child>int</child> <chdAge1>int</chdAge1> <chdAge2>int</chdAge2> <chdAge3>int</chdAge3> <chdAge4>int</chdAge4> <getFlightAllot>boolean</getFlightAllot> <getHotelAllot>boolean</getHotelAllot> <roomAndBoardIsGroup>boolean</roomAndBoardIsGroup> <packType>string</packType> <onlyHotelAvailable>boolean</onlyHotelAvailable> <onlyFlightAvailable>boolean</onlyFlightAvailable> <direction>int</direction> <packageCategory>int</packageCategory> <showFlightDetail>boolean</showFlightDetail> <noStopSaleControl>boolean</noStopSaleControl> <getHotelPrice>boolean</getHotelPrice> <currency>string</currency> <airport>string</airport> <holpack>string</holpack> </GetPriceSearchXML> </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> <GetPriceSearchXMLResponse xmlns="http://www.tourvisio.com/"> <GetPriceSearchXMLResult> <Result>boolean</Result> <ErrorMessage>string</ErrorMessage> <ReturnValue>string</ReturnValue> </GetPriceSearchXMLResult> </GetPriceSearchXMLResponse> </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 /tvwspaximum/Booking.asmx HTTP/1.1 Host: tivrona.tourvisio.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> <GetPriceSearchXML xmlns="http://www.tourvisio.com/"> <token>string</token> <cin1>dateTime</cin1> <cin2>dateTime</cin2> <night1>int</night1> <night2>int</night2> <hotelCode>string</hotelCode> <catName>string</catName> <room>string</room> <board>string</board> <arrCity>int</arrCity> <depCity>int</depCity> <town>int</town> <hotelLocation>int</hotelLocation> <adult>int</adult> <child>int</child> <chdAge1>int</chdAge1> <chdAge2>int</chdAge2> <chdAge3>int</chdAge3> <chdAge4>int</chdAge4> <getFlightAllot>boolean</getFlightAllot> <getHotelAllot>boolean</getHotelAllot> <roomAndBoardIsGroup>boolean</roomAndBoardIsGroup> <packType>string</packType> <onlyHotelAvailable>boolean</onlyHotelAvailable> <onlyFlightAvailable>boolean</onlyFlightAvailable> <direction>int</direction> <packageCategory>int</packageCategory> <showFlightDetail>boolean</showFlightDetail> <noStopSaleControl>boolean</noStopSaleControl> <getHotelPrice>boolean</getHotelPrice> <currency>string</currency> <airport>string</airport> <holpack>string</holpack> </GetPriceSearchXML> </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> <GetPriceSearchXMLResponse xmlns="http://www.tourvisio.com/"> <GetPriceSearchXMLResult> <Result>boolean</Result> <ErrorMessage>string</ErrorMessage> <ReturnValue>string</ReturnValue> </GetPriceSearchXMLResult> </GetPriceSearchXMLResponse> </soap12:Body> </soap12:Envelope>