SoapServer
class SoapServer (View source)
The SoapServer class provides a server for the SOAP 1.1 and SOAP 1.2 protocols. It can be used with or without a WSDL service description.
Methods
SoapServer constructor
SoapServer constructor
Sets SoapServer persistence mode
Sets the class which handles SOAP requests
Sets the object which will be used to handle SOAP requests
Adds one or more functions to handle SOAP requests
Returns list of defined functions
Handles a SOAP request
Issue SoapServer fault indicating an error
No description
Details
__construct(mixed $wsdl, array $options = [])
SoapServer constructor
SoapServer(mixed $wsdl, array $options = null)
SoapServer constructor
void
setPersistence(int $mode)
Sets SoapServer persistence mode
void
setClass(string $class, mixed ...$args)
Sets the class which handles SOAP requests
void
setObject(object $object)
Sets the object which will be used to handle SOAP requests
void
addFunction(mixed $functions)
Adds one or more functions to handle SOAP requests
array
getFunctions()
Returns list of defined functions
void
handle(string $request = null)
Handles a SOAP request
void
fault(string $code, string $string, string $actor = '', string $details = null, string $name = '')
Issue SoapServer fault indicating an error
void
addSoapHeader(SoapHeader $header)
Add a SOAP header to the response
string|null
__getLastResponse()
No description