<?php
class info {
function version() { return php_version(); }
function name() { return php_uname(); }
}
$server = new SoapServer("urn:Object"); // create SOAP server object
$server->setClass('info'); // set available methods based on a class
$server->handle(); // handle requests
?>
<?php
// instantiate SOAP client object
$client =
new SoapObject("http://example.com/soap_server.php", "urn:Object");
echo $client->version(); // call version() method
?>