AgentDataWS


Click here for a complete list of operations.

GetListBooking

Get list booking by created time, return XML list of booking information

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

<?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>
    <GetListBooking xmlns="http://tempuri.org/">
      <Account>string</Account>
      <Password>string</Password>
      <FromDate>dateTime</FromDate>
      <ToDate>dateTime</ToDate>
      <GetPassenger>boolean</GetPassenger>
      <GetBaggage>boolean</GetBaggage>
      <GetFlightSegment>boolean</GetFlightSegment>
    </GetListBooking>
  </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>
    <GetListBookingResponse xmlns="http://tempuri.org/">
      <GetListBookingResult>
        <Booking>
          <Id>int</Id>
          <BookingStatusDepart>string</BookingStatusDepart>
          <BookingStatusReturn>string</BookingStatusReturn>
          <BookingCodeDepart>string</BookingCodeDepart>
          <BookingCodeReturn>string</BookingCodeReturn>
          <StartPoint>string</StartPoint>
          <EndPoint>string</EndPoint>
          <DepartDate>dateTime</DepartDate>
          <ReturnDate>dateTime</ReturnDate>
          <Itinerary>int</Itinerary>
          <AirlineCodeDepart>string</AirlineCodeDepart>
          <AirlineCodeReturn>string</AirlineCodeReturn>
          <BookingDate>dateTime</BookingDate>
          <Timelimit>dateTime</Timelimit>
          <IssueDate>dateTime</IssueDate>
          <ContactName>string</ContactName>
          <ContactTitle>boolean</ContactTitle>
          <Address>string</Address>
          <Email>string</Email>
          <Area>string</Area>
          <Phone>string</Phone>
          <System>string</System>
          <Remark>string</Remark>
          <TotalPrice>double</TotalPrice>
          <TotalFee>double</TotalFee>
          <TotalBagPrice>double</TotalBagPrice>
          <Discount>double</Discount>
          <Currency>string</Currency>
          <Note>string</Note>
          <ResponseTime>double</ResponseTime>
          <ErrorMessage>string</ErrorMessage>
          <PaymentCode>string</PaymentCode>
          <PaymentMethod>string</PaymentMethod>
          <BookingImage>string</BookingImage>
          <ListPassenger>
            <Passenger xsi:nil="true" />
            <Passenger xsi:nil="true" />
          </ListPassenger>
          <ListBaggage>
            <Baggage xsi:nil="true" />
            <Baggage xsi:nil="true" />
          </ListBaggage>
          <ListFlightSegment>
            <FlightSegment xsi:nil="true" />
            <FlightSegment xsi:nil="true" />
          </ListFlightSegment>
        </Booking>
        <Booking>
          <Id>int</Id>
          <BookingStatusDepart>string</BookingStatusDepart>
          <BookingStatusReturn>string</BookingStatusReturn>
          <BookingCodeDepart>string</BookingCodeDepart>
          <BookingCodeReturn>string</BookingCodeReturn>
          <StartPoint>string</StartPoint>
          <EndPoint>string</EndPoint>
          <DepartDate>dateTime</DepartDate>
          <ReturnDate>dateTime</ReturnDate>
          <Itinerary>int</Itinerary>
          <AirlineCodeDepart>string</AirlineCodeDepart>
          <AirlineCodeReturn>string</AirlineCodeReturn>
          <BookingDate>dateTime</BookingDate>
          <Timelimit>dateTime</Timelimit>
          <IssueDate>dateTime</IssueDate>
          <ContactName>string</ContactName>
          <ContactTitle>boolean</ContactTitle>
          <Address>string</Address>
          <Email>string</Email>
          <Area>string</Area>
          <Phone>string</Phone>
          <System>string</System>
          <Remark>string</Remark>
          <TotalPrice>double</TotalPrice>
          <TotalFee>double</TotalFee>
          <TotalBagPrice>double</TotalBagPrice>
          <Discount>double</Discount>
          <Currency>string</Currency>
          <Note>string</Note>
          <ResponseTime>double</ResponseTime>
          <ErrorMessage>string</ErrorMessage>
          <PaymentCode>string</PaymentCode>
          <PaymentMethod>string</PaymentMethod>
          <BookingImage>string</BookingImage>
          <ListPassenger>
            <Passenger xsi:nil="true" />
            <Passenger xsi:nil="true" />
          </ListPassenger>
          <ListBaggage>
            <Baggage xsi:nil="true" />
            <Baggage xsi:nil="true" />
          </ListBaggage>
          <ListFlightSegment>
            <FlightSegment xsi:nil="true" />
            <FlightSegment xsi:nil="true" />
          </ListFlightSegment>
        </Booking>
      </GetListBookingResult>
    </GetListBookingResponse>
  </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 /AgentDataWS.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>
    <GetListBooking xmlns="http://tempuri.org/">
      <Account>string</Account>
      <Password>string</Password>
      <FromDate>dateTime</FromDate>
      <ToDate>dateTime</ToDate>
      <GetPassenger>boolean</GetPassenger>
      <GetBaggage>boolean</GetBaggage>
      <GetFlightSegment>boolean</GetFlightSegment>
    </GetListBooking>
  </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>
    <GetListBookingResponse xmlns="http://tempuri.org/">
      <GetListBookingResult>
        <Booking>
          <Id>int</Id>
          <BookingStatusDepart>string</BookingStatusDepart>
          <BookingStatusReturn>string</BookingStatusReturn>
          <BookingCodeDepart>string</BookingCodeDepart>
          <BookingCodeReturn>string</BookingCodeReturn>
          <StartPoint>string</StartPoint>
          <EndPoint>string</EndPoint>
          <DepartDate>dateTime</DepartDate>
          <ReturnDate>dateTime</ReturnDate>
          <Itinerary>int</Itinerary>
          <AirlineCodeDepart>string</AirlineCodeDepart>
          <AirlineCodeReturn>string</AirlineCodeReturn>
          <BookingDate>dateTime</BookingDate>
          <Timelimit>dateTime</Timelimit>
          <IssueDate>dateTime</IssueDate>
          <ContactName>string</ContactName>
          <ContactTitle>boolean</ContactTitle>
          <Address>string</Address>
          <Email>string</Email>
          <Area>string</Area>
          <Phone>string</Phone>
          <System>string</System>
          <Remark>string</Remark>
          <TotalPrice>double</TotalPrice>
          <TotalFee>double</TotalFee>
          <TotalBagPrice>double</TotalBagPrice>
          <Discount>double</Discount>
          <Currency>string</Currency>
          <Note>string</Note>
          <ResponseTime>double</ResponseTime>
          <ErrorMessage>string</ErrorMessage>
          <PaymentCode>string</PaymentCode>
          <PaymentMethod>string</PaymentMethod>
          <BookingImage>string</BookingImage>
          <ListPassenger>
            <Passenger xsi:nil="true" />
            <Passenger xsi:nil="true" />
          </ListPassenger>
          <ListBaggage>
            <Baggage xsi:nil="true" />
            <Baggage xsi:nil="true" />
          </ListBaggage>
          <ListFlightSegment>
            <FlightSegment xsi:nil="true" />
            <FlightSegment xsi:nil="true" />
          </ListFlightSegment>
        </Booking>
        <Booking>
          <Id>int</Id>
          <BookingStatusDepart>string</BookingStatusDepart>
          <BookingStatusReturn>string</BookingStatusReturn>
          <BookingCodeDepart>string</BookingCodeDepart>
          <BookingCodeReturn>string</BookingCodeReturn>
          <StartPoint>string</StartPoint>
          <EndPoint>string</EndPoint>
          <DepartDate>dateTime</DepartDate>
          <ReturnDate>dateTime</ReturnDate>
          <Itinerary>int</Itinerary>
          <AirlineCodeDepart>string</AirlineCodeDepart>
          <AirlineCodeReturn>string</AirlineCodeReturn>
          <BookingDate>dateTime</BookingDate>
          <Timelimit>dateTime</Timelimit>
          <IssueDate>dateTime</IssueDate>
          <ContactName>string</ContactName>
          <ContactTitle>boolean</ContactTitle>
          <Address>string</Address>
          <Email>string</Email>
          <Area>string</Area>
          <Phone>string</Phone>
          <System>string</System>
          <Remark>string</Remark>
          <TotalPrice>double</TotalPrice>
          <TotalFee>double</TotalFee>
          <TotalBagPrice>double</TotalBagPrice>
          <Discount>double</Discount>
          <Currency>string</Currency>
          <Note>string</Note>
          <ResponseTime>double</ResponseTime>
          <ErrorMessage>string</ErrorMessage>
          <PaymentCode>string</PaymentCode>
          <PaymentMethod>string</PaymentMethod>
          <BookingImage>string</BookingImage>
          <ListPassenger>
            <Passenger xsi:nil="true" />
            <Passenger xsi:nil="true" />
          </ListPassenger>
          <ListBaggage>
            <Baggage xsi:nil="true" />
            <Baggage xsi:nil="true" />
          </ListBaggage>
          <ListFlightSegment>
            <FlightSegment xsi:nil="true" />
            <FlightSegment xsi:nil="true" />
          </ListFlightSegment>
        </Booking>
      </GetListBookingResult>
    </GetListBookingResponse>
  </soap12:Body>
</soap12:Envelope>