Common
Click here for a complete list of operations.
GetRotator
Description: For the parts that will be displayed on main screen or parts that will be displayed like the best
10 hotels or flight prices on certain parts of the site, necessary rotator information is provided by sending
rotatorid. RotatorID needs to be known in advance. GetRotatorList method is brought to select all of the
existing rotator list.
Parameters Sent
token: Key number given upon login to system (string)
rotatorId: Rotator number to display (int)
service: Which services that the rotator include. (string) (eg. “HOTEL”,”FLIGHT” )
packType: This parameter can only be used if service parameter is hotel. If packType parameter is 'O',
it gets minimum price in only hotel packages. If it is 'H', it gets minimum price in all packages except
only hotel packages.
dayRange: If price is not defined in rotator parameter in Tourvisio, it searches all packages for minimum price in given day range. If prices is defined in Tourvisio, this parameter has no use.
errorMsg: Used to control whether any fault will return or not. This is both returning and sent parameter
(string)
Returning Parameters
Rotator information return as Dataset.Content of Dataset:
BeginDate: Beginning date of Rotator expiration time
EndDate: Ending date of Rotator expiration time
Name: Rotator name (e.g. list of Top 5 Hotels)
OrderNo: Order number
HolPack: Package
ItemCode: If it is hotel, hotel code; if it is flight, flight code.
Room: Room code (It only comes if Service=”HOTEL”)
RoomName: Room name (It only comes if Service=”HOTEL”)
Accom: Accommodation code. (eg. DBL, SNG) (It only comes if Service=”HOTEL”)
AccomName: Explanation of Accomodation (eg. DOUBLE, SINGLE) (It only comes if Service=”HOTEL”)
Board: Board code. (eg. FB, HB) (It only comes if Service=”HOTEL”)
BoardName: Board explanation. (eg. FULL BOARD, HALF BOARD) (It only comes if Service=”HOTEL”)
Price: Service price
Currency: Currency
Explain: Service explanation
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/Common.asmx HTTP/1.1 Host: tivrona.tourvisio.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.tourvisio.com/GetRotator" <?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> <GetRotator xmlns="http://www.tourvisio.com/"> <token>string</token> <rotatorId>int</rotatorId> <service>string</service> <packType>string</packType> <checkInFrom>dateTime</checkInFrom> <dayRange>int</dayRange> <night>int</night> <errorMsg>string</errorMsg> </GetRotator> </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> <GetRotatorResponse xmlns="http://www.tourvisio.com/"> <GetRotatorResult> <xsd:schema>schema</xsd:schema>xml</GetRotatorResult> <errorMsg>string</errorMsg> </GetRotatorResponse> </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/Common.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> <GetRotator xmlns="http://www.tourvisio.com/"> <token>string</token> <rotatorId>int</rotatorId> <service>string</service> <packType>string</packType> <checkInFrom>dateTime</checkInFrom> <dayRange>int</dayRange> <night>int</night> <errorMsg>string</errorMsg> </GetRotator> </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> <GetRotatorResponse xmlns="http://www.tourvisio.com/"> <GetRotatorResult> <xsd:schema>schema</xsd:schema>xml</GetRotatorResult> <errorMsg>string</errorMsg> </GetRotatorResponse> </soap12:Body> </soap12:Envelope>