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