FlightWS


Click here for a complete list of operations.

Search

Search flights, return XML search result

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 /FlightWS.asmx HTTP/1.1
Host: api.datacom.vn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Search"

<?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:Header>
    <Authentication xmlns="http://tempuri.org/">
      <HeaderUser>string</HeaderUser>
      <HeaderPassword>string</HeaderPassword>
    </Authentication>
  </soap:Header>
  <soap:Body>
    <Search xmlns="http://tempuri.org/">
      <Account>string</Account>
      <Password>string</Password>
      <Itinerary>int</Itinerary>
      <StartPoint>string</StartPoint>
      <EndPoint>string</EndPoint>
      <DepartDate>dateTime</DepartDate>
      <ReturnDate>dateTime</ReturnDate>
      <Adt>int</Adt>
      <Chd>int</Chd>
      <Inf>int</Inf>
      <Airline>string</Airline>
    </Search>
  </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>
    <SearchResponse xmlns="http://tempuri.org/">
      <SearchResult>
        <Session>string</Session>
        <ErrorMessage>string</ErrorMessage>
        <Type>string</Type>
        <Itinerary>int</Itinerary>
        <SearchTime>dateTime</SearchTime>
        <ListFareData>
          <FareData>
            <FareDataId>int</FareDataId>
            <PlatingCarrier>string</PlatingCarrier>
            <Itinerary>int</Itinerary>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalPrice>double</TotalPrice>
            <TotalNetPrice>double</TotalNetPrice>
            <Promo>boolean</Promo>
            <Currency>string</Currency>
            <System>string</System>
            <Cookies>string</Cookies>
            <HasChangedClass>boolean</HasChangedClass>
            <LastTkDt>dateTime</LastTkDt>
            <ListDepartFlight xsi:nil="true" />
            <ListReturnFlight xsi:nil="true" />
            <ListDepartureRulesInfo xsi:nil="true" />
            <ListReturnRulesInfo xsi:nil="true" />
            <FareInfo xsi:nil="true" />
          </FareData>
          <FareData>
            <FareDataId>int</FareDataId>
            <PlatingCarrier>string</PlatingCarrier>
            <Itinerary>int</Itinerary>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalPrice>double</TotalPrice>
            <TotalNetPrice>double</TotalNetPrice>
            <Promo>boolean</Promo>
            <Currency>string</Currency>
            <System>string</System>
            <Cookies>string</Cookies>
            <HasChangedClass>boolean</HasChangedClass>
            <LastTkDt>dateTime</LastTkDt>
            <ListDepartFlight xsi:nil="true" />
            <ListReturnFlight xsi:nil="true" />
            <ListDepartureRulesInfo xsi:nil="true" />
            <ListReturnRulesInfo xsi:nil="true" />
            <FareInfo xsi:nil="true" />
          </FareData>
        </ListFareData>
        <ListDepartFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
        </ListDepartFlight>
        <ListReturnFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
        </ListReturnFlight>
      </SearchResult>
    </SearchResponse>
  </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 /FlightWS.asmx HTTP/1.1
Host: api.datacom.vn
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:Header>
    <Authentication xmlns="http://tempuri.org/">
      <HeaderUser>string</HeaderUser>
      <HeaderPassword>string</HeaderPassword>
    </Authentication>
  </soap12:Header>
  <soap12:Body>
    <Search xmlns="http://tempuri.org/">
      <Account>string</Account>
      <Password>string</Password>
      <Itinerary>int</Itinerary>
      <StartPoint>string</StartPoint>
      <EndPoint>string</EndPoint>
      <DepartDate>dateTime</DepartDate>
      <ReturnDate>dateTime</ReturnDate>
      <Adt>int</Adt>
      <Chd>int</Chd>
      <Inf>int</Inf>
      <Airline>string</Airline>
    </Search>
  </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>
    <SearchResponse xmlns="http://tempuri.org/">
      <SearchResult>
        <Session>string</Session>
        <ErrorMessage>string</ErrorMessage>
        <Type>string</Type>
        <Itinerary>int</Itinerary>
        <SearchTime>dateTime</SearchTime>
        <ListFareData>
          <FareData>
            <FareDataId>int</FareDataId>
            <PlatingCarrier>string</PlatingCarrier>
            <Itinerary>int</Itinerary>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalPrice>double</TotalPrice>
            <TotalNetPrice>double</TotalNetPrice>
            <Promo>boolean</Promo>
            <Currency>string</Currency>
            <System>string</System>
            <Cookies>string</Cookies>
            <HasChangedClass>boolean</HasChangedClass>
            <LastTkDt>dateTime</LastTkDt>
            <ListDepartFlight xsi:nil="true" />
            <ListReturnFlight xsi:nil="true" />
            <ListDepartureRulesInfo xsi:nil="true" />
            <ListReturnRulesInfo xsi:nil="true" />
            <FareInfo xsi:nil="true" />
          </FareData>
          <FareData>
            <FareDataId>int</FareDataId>
            <PlatingCarrier>string</PlatingCarrier>
            <Itinerary>int</Itinerary>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalPrice>double</TotalPrice>
            <TotalNetPrice>double</TotalNetPrice>
            <Promo>boolean</Promo>
            <Currency>string</Currency>
            <System>string</System>
            <Cookies>string</Cookies>
            <HasChangedClass>boolean</HasChangedClass>
            <LastTkDt>dateTime</LastTkDt>
            <ListDepartFlight xsi:nil="true" />
            <ListReturnFlight xsi:nil="true" />
            <ListDepartureRulesInfo xsi:nil="true" />
            <ListReturnRulesInfo xsi:nil="true" />
            <FareInfo xsi:nil="true" />
          </FareData>
        </ListFareData>
        <ListDepartFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
        </ListDepartFlight>
        <ListReturnFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
          <LccFlight>
            <FlightId>int</FlightId>
            <Airline>string</Airline>
            <Operating>string</Operating>
            <StartPoint>string</StartPoint>
            <EndPoint>string</EndPoint>
            <StartDate>dateTime</StartDate>
            <EndDate>dateTime</EndDate>
            <FlightNumber>string</FlightNumber>
            <Stops>int</Stops>
            <Duration>int</Duration>
            <Adt>int</Adt>
            <Chd>int</Chd>
            <Inf>int</Inf>
            <FareAdt>double</FareAdt>
            <FareChd>double</FareChd>
            <FareInf>double</FareInf>
            <TaxAdt>double</TaxAdt>
            <TaxChd>double</TaxChd>
            <TaxInf>double</TaxInf>
            <FeeAdt>double</FeeAdt>
            <FeeChd>double</FeeChd>
            <FeeInf>double</FeeInf>
            <ServiceFeeAdt>double</ServiceFeeAdt>
            <ServiceFeeChd>double</ServiceFeeChd>
            <ServiceFeeInf>double</ServiceFeeInf>
            <TotalServiceFee>double</TotalServiceFee>
            <TotalNetPrice>double</TotalNetPrice>
            <TotalPrice>double</TotalPrice>
            <Currency>string</Currency>
            <GroupClass>string</GroupClass>
            <FareClass>string</FareClass>
            <Promo>boolean</Promo>
            <SelectValue>string</SelectValue>
            <Cookies>string</Cookies>
            <ViewFareMode>boolean</ViewFareMode>
            <ListSegment xsi:nil="true" />
          </LccFlight>
        </ListReturnFlight>
      </SearchResult>
    </SearchResponse>
  </soap12:Body>
</soap12:Envelope>