I am using PHP5 with nusoap and have successfully pulled data from the following API calls: Enroute, Scheduled, MapFlightBeta. My code (below) seems to work great when more than one argument being passed but will give me the following error on calls with only one argument, such as InFlightInfo:
Array ( [faultcode] => NONE [faultstring] => wrong # args: type InFlightAircraftStruct contains " ident string prefix string type string suffix string origin string destination string timeout string timestamp int firstPositionTime int longitude float latitude float groundspeed int altitude int heading int altitudeStatus string updateType string altitudeChange string " [detail] => Array ( [errorInfo] => Array ( [errorCode] => NONE [stackTrace] => wrong # args: type InFlightAircraftStruct contains " ident string prefix string type string suffix string origin string destination string timeout string timestamp int firstPositionTime int longitude float latitude float groundspeed int altitude int heading int altitudeStatus string updateType string altitudeChange string " while executing “SOAP::insert_value $retnode $result” (procedure “SOAP::reply” line 17) invoked from within “SOAP::reply [dom::DOMImplementation create] $methodNamespace “${methodName}Response” $msg” ) ) )
I get the same error when calling the Search method.
It worked the last time I used it about a month ago.
I obtained the latest WSDL after reading it was obdated, but it did not fix the error.
I managed to resolve that issue and have search working now.
I’m looking for a complete description of all of the parameters returned by Search (particularly the lat/long related ones). Also is there anyway to get the arrival time or flight duration directly from search?
Here is what I’m getting back. I can’t find explanations of a number of the parameters online.
Not really, for example :
[highLongitude]
[highLatitude]
[lowLongitude]
[lowLatitude]
Are not mentioned anywhere. Do you have a complete list with descriptions of each field?
Also (second question) is there anyway to get arrival time for a specific flight from ‘Search’ results?
Ideally what I would like to see is either the existing InFlightAircraftStruct with EstimatedArrivalTime added or (less desirable) an option to have EnrouteFlightStruct as the output data structure of ‘Search’.
The documentation hasn’t kept up with the implementation. high/low lat/long are the maximum and minimum values seen during the flight. faFlightId is the unique* identifier we’ve assigned to the flight.