Flight
Click here for a complete list of operations.
GetFlightPriceXML
Description: Gets all flights and flight prices from given criteria.
Parameters Sent:
token: Key number given upon login to system
cInDate1: Flight date
cInDate2: Checks flights in the intervals from cInDate1 to cInDate2.
Must be bigger than or equal to cindate1
day1: If return exists,it states after how many days returning will be
day2: To make return control on days from day1 to day2
flyClass: Flight Class for flight prices
routeFrom: Departure place
routeTo: Arrival place
isRT: If return exists 'true' ,if not exists 'false' is sent.
minFreeSeat: Gets Flight Prices that has minimum free seat with this parameter
Returning Parameters:
Flight prices return as xml. In Return Value tag FlightPrice and Service Extra tags has a relationship with RecId.
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 /TvWebServices/Flight.asmx HTTP/1.1 Host: tivrona.tourvisio.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.tourvisio.com/GetFlightPriceXML" <?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> <GetFlightPriceXML xmlns="http://www.tourvisio.com/"> <token>string</token> <cInDate1>dateTime</cInDate1> <cInDate2>dateTime</cInDate2> <day1>int</day1> <day2>int</day2> <flyClass>string</flyClass> <routeFrom>int</routeFrom> <routeTo>int</routeTo> <isRT>boolean</isRT> <minFreeSeat>int</minFreeSeat> </GetFlightPriceXML> </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> <GetFlightPriceXMLResponse xmlns="http://www.tourvisio.com/"> <GetFlightPriceXMLResult> <Result>boolean</Result> <ErrorMessage>string</ErrorMessage> <ReturnValue>string</ReturnValue> </GetFlightPriceXMLResult> </GetFlightPriceXMLResponse> </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 /TvWebServices/Flight.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> <GetFlightPriceXML xmlns="http://www.tourvisio.com/"> <token>string</token> <cInDate1>dateTime</cInDate1> <cInDate2>dateTime</cInDate2> <day1>int</day1> <day2>int</day2> <flyClass>string</flyClass> <routeFrom>int</routeFrom> <routeTo>int</routeTo> <isRT>boolean</isRT> <minFreeSeat>int</minFreeSeat> </GetFlightPriceXML> </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> <GetFlightPriceXMLResponse xmlns="http://www.tourvisio.com/"> <GetFlightPriceXMLResult> <Result>boolean</Result> <ErrorMessage>string</ErrorMessage> <ReturnValue>string</ReturnValue> </GetFlightPriceXMLResult> </GetFlightPriceXMLResponse> </soap12:Body> </soap12:Envelope>