WS_Market


Click here for a complete list of operations.

getAirlinesByAirportID

輸入機場的server POI ID與出發/到達(IntType)及相關條件來取得該機場所有航班資料
傳入參數
參數名稱參數型態參數說明
nAirportIDint機場之POIID
nIntTypeint出發 /到達 (Depart: 0, Arrival:1)
str_airwaystring航班所屬的航空公司(ALL或航空公司代碼)
str_airway要以4.6取得所有航空公司代碼與名稱 getAirCompany ()取得
str_departstring航班的出發地或目的地(ALL或機場代碼)
str_depart要以4.7取得所有機場代碼與名稱getAirport ()取得
str_s_timestring查詢起始時間hhmm;24小時制
str_e_timestring查詢終止時間hhmm;24小時制

參數輸入範例
參數
nAirportID540973
nIntType1
str_airwayBR
str_departALL
str_s_time1500
str_e_time1510

回傳格式
回傳值說明
DC_AP抵達之航空站/起飛之航空站
DC_ServiceID航班編號
DC_AC航空公司
DC_ScheduTime預定起飛時間/預定抵達時間
DC_ActualTime實際起飛時間/實際抵達時間
DC_Gate登機門
DC_Terminal航廈
DC_Remark狀態
(已飛 - Departed / 時間更改 - schedule changed / 取消 - cancelled / 已到 - arrived / 準時 - on time / 延誤 - delayed / 提早 - early / 報到 / 登機 )

回傳範例
[{"DT_FIDS":[{"DC_AP":"馬尼拉","DC_ServiceID":"BR272","DC_AC":"長榮航空","DC_ScheduTime":"15:00","DC_ActualTime":"15:00","DC_Gate":"C5","DC_Terminal":"2 ","DC_Remark":"準時"},{"DC_AP":"大阪","DC_ServiceID":"BR2131","DC_AC":"長榮航空","DC_ScheduTime":"15:05","DC_ActualTime":"15:05","DC_Gate":"C1","DC_Terminal":"2 ","DC_Remark":"準時"}]}]

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 /WS_Market.asmx HTTP/1.1
Host: transittw.localking.com.tw
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.gotcha.com.tw/WS_Transit/getAirlinesByAirportID"

<?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>
    <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit">
      <Username>string</Username>
      <HashKey>string</HashKey>
      <Password>string</Password>
    </AuthHeaderMarket>
  </soap:Header>
  <soap:Body>
    <getAirlinesByAirportID xmlns="http://www.gotcha.com.tw/WS_Transit">
      <nAirportID>int</nAirportID>
      <nIntType>int</nIntType>
    </getAirlinesByAirportID>
  </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>
    <getAirlinesByAirportIDResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
      <getAirlinesByAirportIDResult>string</getAirlinesByAirportIDResult>
    </getAirlinesByAirportIDResponse>
  </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 /WS_Market.asmx HTTP/1.1
Host: transittw.localking.com.tw
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>
    <AuthHeaderMarket xmlns="http://www.gotcha.com.tw/WS_Transit">
      <Username>string</Username>
      <HashKey>string</HashKey>
      <Password>string</Password>
    </AuthHeaderMarket>
  </soap12:Header>
  <soap12:Body>
    <getAirlinesByAirportID xmlns="http://www.gotcha.com.tw/WS_Transit">
      <nAirportID>int</nAirportID>
      <nIntType>int</nIntType>
    </getAirlinesByAirportID>
  </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>
    <getAirlinesByAirportIDResponse xmlns="http://www.gotcha.com.tw/WS_Transit">
      <getAirlinesByAirportIDResult>string</getAirlinesByAirportIDResult>
    </getAirlinesByAirportIDResponse>
  </soap12:Body>
</soap12:Envelope>