PHP Questions

I’m fairly new to SOAP and I’m getting an error and I’m not sure what I’m doing wrong. I’m using the following code to try and get the flight information.


$DirectFlight_Authentication = array(
                'user'          => 'testaj',
                'pass'          => 'dontpostyourpassword',
        );
 
	$wsdl_url = 'http://flightaware.com/commercial/flightxml/data/wsdl1.xml';


$client = new SoapClient($wsdl_url, $DirectFlight_Authentication);
print($client->Flightinfo("GLA122", 1));

I’m getting this error:

Fatal error: Uncaught SoapFault exception: [HTTP] Authorization Required in /home/jtesta/public_html/flightxml/test3.php:26 Stack trace: #0 [internal function]: SoapClient->__doRequest(‘<?xml version="…’, ‘http://directfl…’, ‘FlightAwareDire…’, 1, 0) #1 [internal function]: SoapClient->__call(‘Flightinfo’, Array) #2 /home/jtesta/public_html/flightxml/test3.php(26): SoapClient->Flightinfo(‘GLA122’, 1) #3 {main} thrown in /home/jtesta/public_html/flightxml/test3.php on line 26

How is the authorization kept? or am I screwing this up royally somehow!?!?!