I’m getting this error message:
Call to undefined method SOAP_Fault::Scheduled() in (pathname of file) on line 24. Line 24 is where the Scheduled function calls out AAL flights from ORD.
Does anyone see an issue with my code below? I can’t figure it out; and I can’t connect using SOAP to FlightAware…
set_time_limit(0);
header(“Cache-control: private”); //IE 6 Fix
require_once(‘…/connections/conn.php’);
mysql_select_db($database_conn, $conn);
$os = 0;
$airline_count = 0;
do {
require_once('SOAP/Client.php');
$DirectFlight_Authentication = array(
'user' => 'mholm59',
'pass' => '***************',
);
$wsdl_url = 'http://flightaware.com/commercial/directflight/data/wsdl1.xml';
$WSDL = new SOAP_WSDL($wsdl_url,$DirectFlight_Authentication);
$soap = $WSDL->getProxy();
// $results = $soap->FlightInfo('UAL1',1);
$results = $soap->Scheduled('KORD',15,"AAL",$os);
print_r($results);