Home  |  Linux  | Mysql  | PHP  | XML
From:Robert R Date:Mon Feb  8 14:08:38 2010
Subject:simple WSDL client
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

Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] generally, where in cPanel can one set the default page to load?
Re: [PHP-INSTALL] Browser tries to download php file
Re: Replicating an Encrypted Column
php, session_set_save_handler & disappearing session vars
PHP-Extension for Cego database


  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants