Hi
I have created a soap server which resides in my local host folder but whenever I tried to connect to it it gave me and error the error is
Fatal error: Uncaught SoapFault exception: [HTTP] Unable to parse URL in D:\xampp\htdocs\Johansans Guides\client.php:11 Stack trace: #0 [internal function]: SoapClient->__doRequest(‘__soapCall(‘helloWorld’, Array) #2 {main} thrown in D:\xampp\htdocs\Johansans Guides\client.php on line 11
the server code is
“urn://http:/www.wstutorial.com/”));
$server->addFunction(“helloWorld”);
if ($_SERVER["REQUEST_METHOD"] == “POST”)
{
$server->handle();
}
else
{
echo “This SOAP Server Example can handle following functions:”;
$functions = $server->getFunctions();
foreach($functions as $func) {
echo $func ;
}
}
function helloWorld($buddy) {
return “Welcome to the world, ” . $buddy . “!”;
}
?>
While the client side code is
“localhost/Johansans Guides/soapserver1.php?WSDL”,
‘uri’ => “urn://www.wstutorial.com/”,
‘trace’ => 1 ));
$return = $client->__soapCall(“helloWorld”,array(“Tommy”));
echo $return;
?>
I am just wondering as what the problem may be can someone please help me. I haven’t created any wsdl file for the server at all.
It’s working fine for me. Can you provide some specific details about what you are experiencing?