<?php
require_once 'SOAP/Server.php';
$server = new SOAP_Server;
class SOAP_Example_Server {
function echoString($inputString)
{
return $inputString;
}
}
$soapclass = new SOAP_Example_Server();
$server->addObjectMap($soapclass,'urn:SOAP_Example_Server');
$server->service($HTTP_RAW_POST_DATA);
<?php
require_once 'SOAP/Client.php';
$soapclient = new SOAP_Client(
'http://localhost/SOAP/example/exampleserver.php');
$result = $soapclient->call('echoStringSimple',
array('inputString' => 'this is a test string'),
array('namespace' => 'urn:SOAP_Example_Server');
?>