SOAP requests must use /soap/FlightXML2/op as the endpoint, and the request must be encoded as an XML document in the standard SOAP request body format.
I recommending using the JSON interface to FlightXML instead, if you are needing to generate and parse the bodies manually.
That code is untested, so it may or may not work but I suspect it’s very close to being complete.
However, you need to ensure that you are using a FlightXML API key and not your website password. If you do have an API key, you can sign up for one by visiting flightaware.com/commercial/flightxml/key and entering your billing information if prompted.
Sir,
Thanks very much for your reply.
I wrote this code for others, the employer send me the apikey and username. He said that’s right.
I don’t want to create apikey for myself, because I don’t need the serivice. If I can cancle the apikey(and the credit card info from flightaware.com), then I can try to get the key of myself.
And I donwnload c# and javascript sample code from flightaware.com, they all can’t works with the username and apikey, and show the same wrong info.
Maybe it is caused by the wrong username or apikey? Maybe~~~~~~~ I don’t know how to ensure that.
Flight AAL2491 is arriving from KORD
Flight SWA367 is arriving from KPHX
Flight UAL272 is arriving from KIAD
Flight UAL1234 is arriving from KIAH
Flight AAL1452 is arriving from KDFW
Flight FLG3477 is arriving from KMEM
Flight UPS301 is arriving from MMMY
Flight AAL1202 is arriving from KDFW
Flight ASH2653 is arriving from KCLT
Flight SKW5301 is arriving from KORD