simple WSDL client

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

Hi,

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

<?php
$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('<?xml version="...',
'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--
Robert R [ Mo, 08 Februar 2010 20:08 ] [ ID #2031650 ]
PHP » gmane.comp.php.general » simple WSDL client

Vorheriges Thema: php selecting multiple stylesheets
Nächstes Thema: Help with regex (search/replace) please