simple WSDL client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

<?php
$wsdl = "
http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlseditFYP/TemperatureService.wsdl
";
$client = new SoapClient("
http://staff.um.edu.mt/cabe2/supervising/undergraduate/owlseditFYP/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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux