Problem in using soap client in php

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Problem in using soap client in php

Postby rav_nan » 31. August 2007 12:51

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
rav_nan
 
Posts: 6
Joined: 21. August 2007 08:32

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 60 guests