# SOAP Server
# Basic SOAP Server
function test($x)
{
return $x;
}
$server = new SoapServer(null, array('uri' => "http://test-uri/"));
$server->addFunction("test");
$server->handle();
# Syntax
- addFunction() (opens new window) //Register one (or more) function into SOAP request handler
- addSoapHeader() (opens new window) //Add a SOAP header to the response
- fault() (opens new window) //Issue SoapServer fault indicating an error
- getFunctions() (opens new window) //Returns list of functions
- handle() (opens new window) //Handles a SOAP request
- setClass() (opens new window) //Sets the class which handles SOAP requests
- setObject() (opens new window) //Sets the object which will be used to handle SOAP requests
- setPersistence() (opens new window) //Sets SoapServer persistence mode