__construct()
addFunction()
deregisterFaultException()
fault()
getActor()
getClassmap()
getEncoding()
getException()
getFaultExceptions()
getFunctions()
getLastRequest()
getOptions()
getPersistence()
getResponse()
getReturnResponse()
getSoap()
getSoapFeatures()
getSoapVersion()
getTypemap()
getUri()
getWSDL()
getWSDLCache()
handle()
handlePhpErrors()
isRegisteredAsFaultException()
loadFunctions()
registerFaultException()
setActor()
setClass()
setClassmap()
setDebugMode()
setEncoding()
setObject()
setOptions()
setPersistence()
setReturnResponse()
setSoapFeatures()
setSoapVersion()
setTypemap()
setUri()
setWSDL()
setWSDLCache()
validateUrn()
_initializeSoapErrorContext()
_setRequest()
$actor
$caughtException
$class
$classArgs
$classmap
$debug
$encoding
$faultExceptions
$features
$functions
$object
$persistence
$request
$response
$returnResponse
$server
$soapVersion
$typemap
$uri
$wsdl
$wsdlCache
__construct(string $wsdl, array $options)
Sets display_errors INI setting to off (prevent client errors due to bad XML in response). Registers handlePhpErrors() as error handler for E_USER_ERROR.
If $wsdl is provided, it is passed on to setWSDL(); if any options are specified, they are passed on to setOptions().
string
array
\Zend\Soap\Exception\ExtensionNotLoadedException |
---|
addFunction(array | string $function, string $namespace) : \Zend\Soap\self
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
arraystring
Function name, array of function names to attach, or SOAP_FUNCTIONS_ALL to attach all functions
string
Ignored
\Zend\Soap\Exception\InvalidArgumentException |
on invalid functions |
---|
\Zend\Soap\self
deregisterFaultException(string $class) : bool
string
bool
fault(string | \Exception $fault, string $code) : \SoapFault
Note that the arguments are reverse to those of SoapFault.
If an exception is passed as the first argument, its message and code will be used to create the fault object if it has been registered via {@Link registerFaultException()}.
link | http://www.w3.org/TR/soap12-part1/#faultcodes |
---|
string\Exception
string
SOAP Fault Codes
getActor() : string
string
getClassmap() : mixed
mixed
getEncoding() : string
string
getException() : null | \Exception
null
\Exception
caught exceptiongetFaultExceptions() : array
array
getFunctions() : array
Returns a list of all functions registered with addFunction(), merged with all public methods of the class set with setClass() (if any).
array
getLastRequest() : string
string
getOptions() : array
array
getPersistence() : int
int
getResponse() : string
string
getReturnResponse() : bool
bool
getSoap() : \SoapServer
Uses $wsdl and return value of getOptions() to instantiate SoapServer object, and then registers any functions or class with it, as well as persistence.
getSoapFeatures() : int
int
getSoapVersion() : int
int
getTypemap() : array
array
getUri() : string
string
getWSDL() : string
string
getWSDLCache()
handle(\DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string $request) : void | string
Instantiates SoapServer object with options set in object, and dispatches its handle() method.
$request may be any of: - DOMDocument; if so, then cast to XML - DOMNode; if so, then grab owner document and cast to XML - SimpleXMLElement; if so, then cast to XML - stdClass; if so, calls __toString() and verifies XML - string; if so, verifies XML
If no request is passed, pulls request using php:://input (for cross-platform compatibility purposes).
void
string
handlePhpErrors(int $errno, string $errstr, string $errfile, int $errline, array $errcontext)
int
string
string
int
array
\SoapFault |
---|
isRegisteredAsFaultException(string $fault) : bool
string
Name of a fault class
bool
loadFunctions(array $definition) : void
Used for persistence; loads a construct as returned by getFunctions().
array
\Zend\Soap\Exception\RuntimeException |
Unimplemented |
---|
registerFaultException(string | array $class) : \Zend\Soap\self
stringarray
Exception class or array of exception classes
\Zend\Soap\Exception\InvalidArgumentException |
---|
\Zend\Soap\self
setActor(string $actor) : \Zend\Soap\self
Actor is the actor URI for the server.
string
\Zend\Soap\self
setClass(string | object $class, string $namespace, null | array $argv) : \Zend\Soap\self
Accepts a class name to use when handling requests. Any additional arguments will be passed to that class' constructor when instantiated.
See setObject() to set pre-configured object instances as request handlers.
stringobject
Class name or object instance which executes SOAP Requests at endpoint.
string
nullarray
\Zend\Soap\Exception\InvalidArgumentException |
if called more than once, or if class does not exist |
---|
\Zend\Soap\self
setClassmap(array $classmap) : \Zend\Soap\self
array
\Zend\Soap\Exception\InvalidArgumentException |
for any invalid class in the class map |
---|
\Zend\Soap\self
setDebugMode(bool $debug) : \Zend\Soap\self
In debug mode, all exceptions are send to the client.
bool
\Zend\Soap\self
setEncoding(string $encoding) : \Zend\Soap\self
string
\Zend\Soap\Exception\InvalidArgumentException |
with invalid encoding argument |
---|
\Zend\Soap\self
setObject(object $object) : \Zend\Soap\self
Accepts an instantiated object to use when handling requests.
object
\Zend\Soap\Exception\InvalidArgumentException |
---|
\Zend\Soap\self
setOptions(array | \Traversable $options) : \Zend\Soap\self
Allows setting options as an associative array of option => value pairs.
array\Traversable
\Zend\Soap\self
setPersistence(int $mode) : \Zend\Soap\self
int
SOAP_PERSISTENCE_SESSION or SOAP_PERSISTENCE_REQUEST constants
\Zend\Soap\Exception\InvalidArgumentException |
---|
\Zend\Soap\self
setReturnResponse(bool $flag) : \Zend\Soap\self
If true, handle() will return the response instead of automatically sending it back to the requesting client.
The response is always available via getResponse().
bool
\Zend\Soap\self
setSoapFeatures(string | int $feature) : \Zend\Soap\self
stringint
\Zend\Soap\self
setSoapVersion(int $version) : \Zend\Soap\self
int
One of the SOAP_1_1 or SOAP_1_2 constants
\Zend\Soap\Exception\InvalidArgumentException |
with invalid soap version argument |
---|
\Zend\Soap\self
setTypemap(array $typeMap) : \Zend\Soap\self
array
\Zend\Soap\Exception\InvalidArgumentException |
---|
\Zend\Soap\self
setUri(string $uri) : \Zend\Soap\self
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
string
\Zend\Soap\self
setWSDL(string $wsdl) : \Zend\Soap\self
string
URI or path to a WSDL
\Zend\Soap\self
setWSDLCache(string | int | bool $options) : \Zend\Soap\self
stringintbool
\Zend\Soap\self
validateUrn(string $urn) : true
string
\Zend\Soap\Exception\InvalidArgumentException |
on invalid URN |
---|
true
_initializeSoapErrorContext() : bool
bool
display_errors original value_setRequest(\DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string $request) : \Zend\Soap\self
$request may be any of: - DOMDocument; if so, then cast to XML - DOMNode; if so, then grab owner document and cast to XML - SimpleXMLElement; if so, then cast to XML - stdClass; if so, calls __toString() and verifies XML - string; if so, verifies XML
\DOMDocument\DOMNode\SimpleXMLElement\stdClassstring
\Zend\Soap\Exception\InvalidArgumentException |
---|
\Zend\Soap\self
$actor : string
$class : string
$classArgs : array
$classmap : array
$debug : bool
$encoding : string
$faultExceptions : array
$features : int
$functions : array | int
$object
$persistence : int
$request : string
$response : string
$returnResponse : bool
$soapVersion : int
$typemap : array
$uri : string
$wsdl : string
$wsdlCache : mixed