Function Mapping

<?php
require_once 'SOAP/Server.php';

$server = new SOAP_Server;

function 
echoString($inputString)
{
    return 
$inputString;
}

$in = array('inputString'=>'string');
$out = array('outputString'=>'string');

$soapclass = new SOAP_Example_Server();
$server->addToMap($soapclass,$in,$out,'urn:SOAP_Example_Server');
$server->service($HTTP_RAW_POST_DATA);
?>