Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Soap_Server
string $_actor = ''Actor URI
Detailsstring $_class = ''Class registered with this server
Detailsarray $_classArgs = 'array'Arguments to pass to {@link $_class} constructor
Detailsarray $_classmap = ''Array of SOAP type => PHP class pairings for handling return/incoming values
Detailsstring $_encoding = ''Encoding
Detailsarray $_faultExceptions = 'array'Registered fault exceptions
Detailsint $_features = ''SOAP Server Features
Detailsarray|int $_functions = 'array'Functions registered with this server; may be either an array or the SOAP_FUNCTIONS_ALL constant
Details $_object = ''Object registered with this server
Detailsint $_persistence = ''Persistence mode; should be one of the SOAP persistence constants
Detailsstring $_request = ''Request XML
Detailsstring $_response = ''Response XML
Detailsboolean $_returnResponse = 'false'Flag: whether or not {@link handle()} should return a response instead of automatically emitting it.
Detailsint $_soapVersion = 'SOAP_1_2'SOAP version to use; SOAP_1_2 by default, to allow processing of headers
Detailsstring $_uri = ''URI namespace for SOAP server
Detailsstring $_wsdl = ''URI or path to WSDL
Detailsmixed $_wsdlCache = ''WSDL Caching Options of SOAP Server
Details__construct(
string $wsdl
=
null, array $options
=
null
)
:
voidConstructor
Sets display_errors INI setting to off (prevent client errors due to bad XML in response). Registers {@link handlePhpErrors()} as error handler for E_USER_ERROR.
If $wsdl is provided, it is passed on to {@link setWsdl()}; if any options are specified, they are passed on to {@link setOptions()}.
Details_getSoap(
)
:
SoapServerGet SoapServer object
Uses {@link $_wsdl} and return value of {@link getOptions()} to instantiate SoapServer object, and then registers any functions or class with it, as well as peristence.
Details_initializeSoapErrorContext(
)
:
booleanMethod initalizes the error context that the SOAPServer enviroment will run in.
Details_setRequest(
DOMDocument|DOMNode|SimpleXMLElement|stdClass|string $request
)
:
Zend_Soap_ServerSet request
$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
DetailsaddFunction(
array|string $function, string $namespace
)
:
Zend_Soap_ServerAttach a function as a server method
DetailsderegisterFaultException(
string $class
)
:
booleanDeregister a fault exception from the fault exception stack
Detailsfault(
string|Exception $fault
=
null, string $code
=
Receiver
)
:
SoapFaultGenerate a server fault
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()}.
DetailsgetActor(
)
:
stringRetrieve actor
DetailsgetClassmap(
)
:
mixedRetrieve classmap
DetailsgetEncoding(
)
:
stringGet encoding
DetailsgetFaultExceptions(
)
:
arrayReturn fault exceptions list
DetailsgetFunctions(
)
:
arrayReturn a server definition array
Returns a list of all functions registered with {@link addFunction()}, merged with all public methods of the class set with {@link setClass()} (if any).
DetailsgetLastRequest(
)
:
stringRetrieve request XML
DetailsgetLastResponse(
)
:
stringGet response XML
DetailsgetOptions(
)
:
arrayReturn array of options suitable for using with SoapServer constructor
DetailsgetPersistence(
)
:
Zend_Soap_ServerGet server persistence
DetailsgetReturnResponse(
)
:
booleanRetrieve return response flag
DetailsgetSoapFeatures(
)
:
intReturn current SOAP Features options
DetailsgetSoapVersion(
)
:
intGet SOAP version
DetailsgetUri(
)
:
stringRetrieve URI
DetailsgetWsdl(
)
:
stringRetrieve wsdl
DetailsgetWsdlCache(
)
:
Get current SOAP Wsdl Caching option
Detailshandle(
DOMDocument|DOMNode|SimpleXMLElement|stdClass|string $request
=
null
)
:
void|stringHandle a request
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 compatability purposes).
DetailshandlePhpErrors(
int $errno, string $errstr, string $errfile
=
null, int $errline
=
null, array $errcontext
=
null
)
:
voidThrow PHP errors as SoapFaults
DetailsloadFunctions(
$definition
)
:
voidUnimplemented: Load server definition
DetailsregisterFaultException(
string|array $class
)
:
Zend_Soap_ServerRegister a valid fault exception
DetailssetActor(
string $actor
)
:
Zend_Soap_ServerSet actor
Actor is the actor URI for the server.
DetailssetClass(
string $class, $namespace, $argv
=
null
)
:
Zend_Soap_ServerAttach a class to a server
Accepts a class name to use when handling requests. Any additional arguments will be passed to that class' constructor when instantiated.
See {@link setObject()} to set preconfigured object instances as request handlers.
DetailssetClassmap(
array $classmap
)
:
Zend_Soap_ServerSet classmap
DetailssetEncoding(
string $encoding
)
:
Zend_Soap_ServerSet encoding
DetailssetObject(
object $object
)
:
Zend_Soap_ServerAttach an object to a server
Accepts an instanciated object to use when handling requests.
DetailssetOptions(
array|Zend_Config $options
)
:
Zend_Soap_ServerSet Options
Allows setting options as an associative array of option => value pairs.
DetailssetPersistence(
int $mode
)
:
Zend_Soap_ServerSet server persistence
DetailssetReturnResponse(
boolean $flag
)
:
Zend_Soap_ServerSet return response flag
If true, {@link handle()} will return the response instead of automatically sending it back to the requesting client.
The response is always available via {@link getResponse()}.
DetailssetSoapFeatures(
string|int $feature
)
:
Zend_Soap_ServerSet the SOAP Feature options.
DetailssetSoapVersion(
int $version
)
:
Zend_Soap_ServerSet SOAP version
DetailssetUri(
string $uri
)
:
Zend_Soap_ServerSet URI
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
DetailssetWsdl(
string $wsdl
)
:
Zend_Soap_ServerSet wsdl
DetailssetWsdlCache(
$options
)
:
Zend_Soap_ServerSet the SOAP Wsdl Caching Options
DetailsvalidateUrn(
string $urn
)
:
trueCheck for valid URN
Details