hey guys can any body help me in this code and please tell me where am i going wrong. i hav created a webservice which gives me a wsdl file as http://localhost/PhpPrograms/server.php?wsdl but cannot run the client code why? please do tell me as soon as possible. thanks in advance
<?php
require_once 'SOAP/Client.php';
// Modify the URL here - note the "?wsdl" at the end
$wsdl = new SOAP_WSDL ('http://localhost/PhpPrograms/server.php?wsdl');
$helloClient = $wsdl->getProxy();
echo ($helloClient->sayHello('Bill'));
?>
it gives me the following error
Catchable fatal error: Object of class SOAP_Fault could not be converted to string in C:\xampp\eclipse\workspace\PhpPrograms\client.php on line 9