
To do this, simply specify the optional argument "jsonp_callback" with a value that is the name of the JavaScript function that should be invoked with the JSON data.Īlthough AeroAPI functionality is primarily intended to be accessed through a "pull" oriented request model using the SOAP/WSDL or REST/JSON interfaces, you can also opt to receive a "pushed" notification from our server to yours whenever certain flight events occur. Requests can be returned in "JSONP" format, allowing a web page to load the response in a way that avoids the same-domain security restrictions enforced by some browsers. All requests made must supply the username and API Key as a "basic" Authorization HTTP header.įor example, the following URL is how you might request the current weather at John F.
To access any method, simply perform either a GET or POST request to using standard CGI-style representation of the arguments. This allows AeroAPI to be used in environments in which it is inconvenient or impossible to invoke SOAP services, such as mobile phone applications, web browser applications, or server-side JavaScript environments. Libraries listed in the examples section have been tested to be compatible.ĪeroAPI 2 can also be accessed using a light-weight "Representational state transfer" (REST) inspired protocol that returns its responses encoded in "JavaScript Object Notation" (JSON) format. Support this newer method, although some older SOAP libraries are not yet compatible. "RPC/Encoded" method that was used by the AeroAPI 1 WSDL. This is a newer method that recent SOAP industry standards dictate should be used instead of the older The AeroAPI 2 WSDL uses the "Document/Literal wrapped" method for encoding SOAP requests and responses. This will vastly improve the performance and efficiency of your application. It is strongly suggested that you ensure that your applications cache the WSDLįile so that it is not necessary to fetch and parse the WSDL for every request or instance of yourĪpplication. Most modern SOAP implementations support use of "Web Services Description Language" (WSDL) definition file, which greatly simplifies accessing web services.Īlthough you can read the WSDL and generate SOAP queries manually, it is recommended that you develop yourĪpplications using a SOAP library that automatically parses the WSDL and populates your application namespace The primary protocol recommended for use with AeroAPI 2 is the "Simple Object Access Protocol" (SOAP).
