Hello everyone,
I try to call per https a simple webservice from a process using a self-made WSDL file.
However the process ends up with a time out error on the servcer console.
Do I do sth. wrong or do I have to set some special configuration?
I use the following configuration:
Address:
https://localhost:8080/test/include/soap/Name: hello
Prefix: tns
Target namespace: urn://test/res
In the following I attached to code for the simple soap server made by php script:
| Code: : |
<?php
function hello( $someone ) {
return "Hello " . $someone . "!";
}
$server = new SoapServer(null,
array('uri' => "urn://test/res"));
$server->addFunction("hello");
$server->handle();
?>
|
here the simple and well-working client php script:
| Code: : |
<?php # HelloClient.php
# Copyright (c) 2005 by Dr. Herong Yang
#
$client = new SoapClient(null, array(
'location' => "https://localhost:8080/test/include/soap/",
'uri' => "urn://test/res",
'trace' => 1 ));
$return = $client->__soapCall("hello",array("world"));
echo "<br>";
echo("_CRLF_Returning value of __soapCall() call: ".$return);
echo "<br>";
echo("_CRLF_Dumping request headers:_CRLF_"
.$client->__getLastRequestHeaders());
echo "<br>";
echo("_CRLF_Dumping request:_CRLF_".$client->__getLastRequest());
echo "<br>";
echo("_CRLF_Dumping response headers:_CRLF_"
.$client->__getLastResponseHeaders());
echo "<br>";
echo("_CRLF_Dumping response:_CRLF_".$client->__getLastResponse());
?>
|
Thanks and best regards
Robert Sommer