__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.
arraystringFunction name, array of function names to attach, or SOAP_FUNCTIONS_ALL to attach all functions
stringIgnored
\Zend\Soap\Exception\InvalidArgumentException |
on invalid functions |
|---|
\Zend\Soap\selfderegisterFaultException(string $class) : bool
string
boolfault(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
stringSOAP Fault Codes
getActor() : string
stringgetClassmap() : mixed
mixedgetEncoding() : string
stringgetException() : null | \Exception
null\Exceptioncaught exceptiongetFaultExceptions() : array
arraygetFunctions() : array
Returns a list of all functions registered with addFunction(), merged with all public methods of the class set with setClass() (if any).
arraygetLastRequest() : string
stringgetOptions() : array
arraygetPersistence() : int
intgetResponse() : string
stringgetReturnResponse() : bool
boolgetSoap() : \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
intgetSoapVersion() : int
intgetTypemap() : array
arraygetUri() : string
stringgetWSDL() : string
stringgetWSDLCache()
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).
voidstring
handlePhpErrors(int $errno, string $errstr, string $errfile, int $errline, array $errcontext)
int
string
string
int
array
\SoapFault |
|---|
isRegisteredAsFaultException(string $fault) : bool
stringName of a fault class
boolloadFunctions(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
stringarrayException class or array of exception classes
\Zend\Soap\Exception\InvalidArgumentException |
|---|
\Zend\Soap\selfsetActor(string $actor) : \Zend\Soap\self
Actor is the actor URI for the server.
string
\Zend\Soap\selfsetClass(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.
stringobjectClass 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\selfsetClassmap(array $classmap) : \Zend\Soap\self
array
\Zend\Soap\Exception\InvalidArgumentException |
for any invalid class in the class map |
|---|
\Zend\Soap\selfsetDebugMode(bool $debug) : \Zend\Soap\self
In debug mode, all exceptions are send to the client.
bool
\Zend\Soap\selfsetEncoding(string $encoding) : \Zend\Soap\self
string
\Zend\Soap\Exception\InvalidArgumentException |
with invalid encoding argument |
|---|
\Zend\Soap\selfsetObject(object $object) : \Zend\Soap\self
Accepts an instantiated object to use when handling requests.
object
\Zend\Soap\Exception\InvalidArgumentException |
|---|
\Zend\Soap\selfsetOptions(array | \Traversable $options) : \Zend\Soap\self
Allows setting options as an associative array of option => value pairs.
array\Traversable
\Zend\Soap\selfsetPersistence(int $mode) : \Zend\Soap\self
intSOAP_PERSISTENCE_SESSION or SOAP_PERSISTENCE_REQUEST constants
\Zend\Soap\Exception\InvalidArgumentException |
|---|
\Zend\Soap\selfsetReturnResponse(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\selfsetSoapFeatures(string | int $feature) : \Zend\Soap\self
stringint
\Zend\Soap\selfsetSoapVersion(int $version) : \Zend\Soap\self
intOne of the SOAP_1_1 or SOAP_1_2 constants
\Zend\Soap\Exception\InvalidArgumentException |
with invalid soap version argument |
|---|
\Zend\Soap\selfsetTypemap(array $typeMap) : \Zend\Soap\self
array
\Zend\Soap\Exception\InvalidArgumentException |
|---|
\Zend\Soap\selfsetUri(string $uri) : \Zend\Soap\self
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
string
\Zend\Soap\selfsetWSDL(string $wsdl) : \Zend\Soap\self
stringURI or path to a WSDL
\Zend\Soap\selfsetWSDLCache(string | int | bool $options) : \Zend\Soap\self
stringintbool
\Zend\Soap\selfvalidateUrn(string $urn) : true
string
\Zend\Soap\Exception\InvalidArgumentException |
on invalid URN |
|---|
true_initializeSoapErrorContext() : bool
booldisplay_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