FlightAware Discussions


I run GetFlightID with “SWA609” “1305142560” and returns
"SOAP Response cannot be decoded"… its incredible because i get this data from Enroute… your own information is inconsistent?

It works for me in Python. I don’t know what language or framework you’re using, but you should try enabling more verbosity or details.


# https://fedorahosted.org/suds/
# Suds 0.3.3 or higher
# yum install python-suds

import sys
from suds import null, WebFault
from suds.client import Client

username = 'YOUR-USERNAME'
apiKey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

url = 'http://flightxml.flightaware.com/soap/FlightXML2/wsdl'
api = Client(url, username=username, password=apiKey)
result = api.service.GetFlightID('SWA609', '1305142560')
print result

Result is: