Home  |  Linux  | Mysql  | PHP  | XML
From:Robert R Date:Mon Feb  8 19: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
namespace keyword
Re: namespace keyword
Re: [PHP] simplexml - can it do what I need?
Re: [PHP] simplexml - can it do what I need?
Re: [PHP] php selecting multiple stylesheets



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants