simple WSDL client

simple WSDL client

am 08.02.2010 20:08:38 von Robert R

--0016e64758585d9d72047f1b870d
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I am writing a simple WSDL client in php as follow:

$wsdl = "
http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlse ditFYP/TemperatureService.wsdl
";
$client = new SoapClient("
http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlse ditFYP/TemperatureService.wsdl
");
echo("\nReturning value of getTemp() call: ". $client->getTemp("12345"));
?>

when running the script I am getting the following error:

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host
in /var/www/phpsoap/client5.php:4
Stack trace:
#0 [internal function]: SoapClient->__doRequest(' 'http://services...', '', 1, 0)
#1 [internal function]: SoapClient->__call('getTemp', Array)
#2 /var/www/phpsoap/client5.php(4): SoapClient->getTemp('12345')
#3 {main}
thrown in /var/www/phpsoap/client5.php on line 4

Am I missing anything?

Thanks,
R

--0016e64758585d9d72047f1b870d--