Flight


Click here for a complete list of operations.

GetFlightPrice

Description: Gets all flight days from selected departure city to selected arrival city.

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
errorMsg: Used to control whether any fault will return or not.This both returning and sent parameter.

Returning Parameters:
Flight prices return as Dataset.

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 /TvWebServicesTest/Flight.asmx HTTP/1.1
Host: tivrona.tourvisio.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.tourvisio.com/GetFlightPrice"

<?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>
    <GetFlightPrice 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>
      <flightType>int</flightType>
      <errorMsg>string</errorMsg>
    </GetFlightPrice>
  </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>
    <GetFlightPriceResponse xmlns="http://www.tourvisio.com/">
      <GetFlightPriceResult>
        <xsd:schema>schema</xsd:schema>xml</GetFlightPriceResult>
      <errorMsg>string</errorMsg>
    </GetFlightPriceResponse>
  </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 /TvWebServicesTest/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>
    <GetFlightPrice 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>
      <flightType>int</flightType>
      <errorMsg>string</errorMsg>
    </GetFlightPrice>
  </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>
    <GetFlightPriceResponse xmlns="http://www.tourvisio.com/">
      <GetFlightPriceResult>
        <xsd:schema>schema</xsd:schema>xml</GetFlightPriceResult>
      <errorMsg>string</errorMsg>
    </GetFlightPriceResponse>
  </soap12:Body>
</soap12:Envelope>