SOAP Server
Basic SOAP Server
Section titled “Basic SOAP Server”function test($x){ return $x;}
$server = new SoapServer(null, array('uri' => "http://test-uri/"));$server->addFunction("test");$server->handle();Syntax
Section titled “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