# flight status xml info

**URL:** <https://discussions.flightaware.com/t/flight-status-xml-info/20206>\
**Category:** AeroAPI\
**Created:** [July 1, 2017, 5:51am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206 "2017-07-01T05:51:35Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 1, 2017, 5:51am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/1 "2017-07-01T05:51:35Z")

</div>

how i pass data to get flight info in xml.  
[flightxml.flightaware.com/soap/FlightXML2/wsdl](https://flightxml.flightaware.com/soap/FlightXML2/wsdl)  
by this url i get authentication error

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 3, 2017, 3:26pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/2 "2017-07-03T15:26:30Z")

</div>

You’ll have to pass authentication information along with your request. Since you are making a SOAP request the details of how to do that will vary based on the client you are using. There are examples of how to do it here:  
[github.flightaware.com/flightaw … /pull/1704](https://github.flightaware.com/flightaware/fa_web/pull/1704)

If you are using a different client or require additional help then post a code snippet or additional details on how you are making the call.

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 4, 2017, 4:38am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/3 "2017-07-04T04:38:24Z")

</div>

Hi,  
How i can send authenticate data as it contains the username and password.  
If i posted it here then any one can view and harm my account. so i can send data only through my APP KEY. i am using username and app key in authentication .

I am trying to post my PHP code here but it show me 404 error with forbidden error. so i am not able to post my code here i am using code tag but still it not allow me to post my code and response here.

Please check the functionality of forum so it can allow me to post my data.

Thanks…

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 5, 2017, 1:47pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/4 "2017-07-05T13:47:03Z")

</div>

What PHP SOAP client are you using?

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 11, 2017, 11:36am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/5 "2017-07-11T11:36:55Z")

</div>

Hi, we sent the code via email as it does not allow it here. I have now sent a total of 3 emails and am getting no repsonse?

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 14, 2017, 7:01pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/6 "2017-07-14T19:01:41Z")

</div>

Did you hear back from support? They forwarded some emails to me and I sent them the reply.

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 15, 2017, 4:33am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/7 "2017-07-15T04:33:11Z")

</div>

Hi  
can you please explain that this code is only applicable for given origin and destination

```auto

$params = array(
                "origin" => "FALE",
                "destination" => "FAOR",
                "startDate" => $startDate,
                "endDate" => $endDate,
                "airline" => "",
                "flightno" => "",
                "howMany" => 15,
                "offset" => 0
                );
$result = $client->AirlineFlightSchedules($params);

```

because if i change origin FALE to KALB and destination FAOR to KALO i didn’t get any result.But on live site [lukadiansolutions.co.za/routetest.php](http://lukadiansolutions.co.za/routetest.php)

---

<div class="post-metadata">

**Author:** ![mduell](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/mduell/32/115680_2.png) [@mduell](https://discussions.flightaware.com/u/mduell)\
**Post date:** [July 15, 2017, 3:48pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/8 "2017-07-15T15:48:27Z")

</div>

The API only supports nonstop flights. To find connecting flights you’d have to pull departures from one airport, arrivals from another, and see where they could match up. This is how the website does it.

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 15, 2017, 5:47pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/9 "2017-07-15T17:47:06Z")

</div>

FlightXML3 has FindFlights which does what you’re looking for.

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 18, 2017, 6:48am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/10 "2017-07-18T06:48:24Z")

</div>

Hi  
Please clear me that if i want to see flight status between two airports then which function i have to use .and where i see on live site that output is accurate or not.  
I am using this “AirlineFlightSchedules” method .  
I need the flight status by flight code as well as airport code also,for this which method i have to use.  
for flight status by flight i am using this"FlightInfoEx" method.  
how can i check the output is accurate or not.  
And how can i use FlightXML3?

thank you

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 18, 2017, 7:30am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/11 "2017-07-18T07:30:10Z")

</div>

Hi  
to get flight status by flight code “MNO248”,“CAW6224” i use FlightInfoEx method but i got actualdeparturetime and actualarrivaltime like  
1970-01-01 02:00:00 and 1970-01-01 02:00:00.  
is it right or wrong?  
if wrong then how can i get flight status by flight code .  
please confirm as soon as possible

Thanks

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 18, 2017, 3:34pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/12 "2017-07-18T15:34:45Z")

</div>

When you call FlightInfoEx you should request more than one result (howMany \> 1) as it will return flights that have not yet departed. For flights that have not departed the actualdeparturetime is 0 (which translates to January 1, 1970 epoch). To match up flights from AirlineFlightSchedules with FlightInfoEx you should inspect the filed\_departuretime. That should match up with the departuretime from AirlineFlightSchedules.

AirlineFlightSchedules will show you flights between an origin and destination, but only direct flights. The website will look for common routes that include indirect flights. We introduced a method in FlightXML3 that has that functionality and you can sign up here: [flightaware.com/commercial/flig … \_class.rvt](https://flightaware.com/commercial/flightxml/pricing_class.rvt)  
The documentation for the methods can be found here: [flightaware.com/commercial/flig … apiref.rvt](https://flightaware.com/commercial/flightxml/v3/apiref.rvt)

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 19, 2017, 4:31am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/13 "2017-07-19T04:31:08Z")

</div>

Hi  
how can i login with api to use FlightXML3 methods.  
I use this code to login with API in FlightXML2 .

```auto

$options = array(
                 'trace' => true,
                 'exceptions' => 0,
                 'login' => 'username',
                 'password' => 'apikey',
                 );
$client = new SoapClient('https://flightxml.flightaware.com/soap/FlightXML2/wsdl', $options);

```

I have to replace FlightXML2 with FLightXML3 ?  
i logedin with this url  
[uk.flightaware.com/commercial/fl … \_class.rvt](http://uk.flightaware.com/commercial/flightxml/pricing_class.rvt)  
and got FlightXML3 beta pricing Schema .  
I have to pay again to use FlightXML3 schema?

---

<div class="post-metadata">

**Author:** ![conej730](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/conej730/32/122980_2.png) [@conej730](https://discussions.flightaware.com/u/conej730)\
**Post date:** [July 19, 2017, 7:29pm UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/14 "2017-07-19T19:29:25Z")

</div>

After you singup for a FlightXML3 subscription, here is an example of how to connect using PHP’s SoapClient:

[github.com/flightaware/flightxm … SoapClient](https://github.com/flightaware/flightxml3_examples/tree/master/php/soap/SoapClient)

Be sure to use the API key that you received for FlightXML3 (not your FlightXML2 API key)

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 29, 2017, 11:56am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/15 "2017-07-29T11:56:52Z")

</div>

Hi

Please tell me how can i show all origin and destination in the dropdown boxes in XML3 .please provide me all javascript or php code to show all the origin and destination.  
[http://flightaware.com/live/findflight](http://flightaware.com/live/findflight)  
as origin and destination dropdown in the above link .

---

<div class="post-metadata">

**Author:** ![davidhartonline](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/davidhartonline/32/4172_2.png) [@davidhartonline](https://discussions.flightaware.com/u/davidhartonline)\
**Post date:** [July 31, 2017, 5:17am UTC](https://discussions.flightaware.com/t/flight-status-xml-info/20206/16 "2017-07-31T05:17:00Z")

</div>

hi  
I got method like AllAirports in flightXML2 and i am using flightxml3 to get flight status between 2 routes. please confirm me that there are any method to get all indent code in flightXML3.
