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
string $_class = ''
Class registered with this server
array $_classArgs = 'array'
Arguments to pass to {@link $_class} constructor
array $_classmap = ''
Array of SOAP type => PHP class pairings for handling return/incoming values
string $_encoding = ''
Encoding
array $_faultExceptions = 'array'
Registered fault exceptions
int $_features = ''
SOAP Server Features
array|int $_functions = 'array'
Functions registered with this server; may be either an array or the SOAP_FUNCTIONS_ALL constant
$_object = ''
Object registered with this server
int $_persistence = ''
Persistence mode; should be one of the SOAP persistence constants
string $_request = ''
Request XML
string $_response = ''
Response XML
boolean $_returnResponse = 'false'
Flag: whether or not {@link handle()} should return a response instead of automatically emitting it.
int $_soapVersion = 'SOAP_1_2'
SOAP version to use; SOAP_1_2 by default, to allow processing of headers
string $_uri = ''
URI namespace for SOAP server
string $_wsdl = ''
URI or path to WSDL
mixed $_wsdlCache = ''
WSDL Caching Options of SOAP Server
__construct(
string $wsdl
=
null, array $options
=
null
)
:
void
Constructor
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()}.
_getSoap(
)
:
SoapServer
Get 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.
_initializeSoapErrorContext(
)
:
boolean
Method initalizes the error context that the SOAPServer enviroment will run in.
_setRequest(
DOMDocument|DOMNode|SimpleXMLElement|stdClass|string $request
)
:
Zend_Soap_Server
Set 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
addFunction(
array|string $function, string $namespace
)
:
Zend_Soap_Server
Attach a function as a server method
deregisterFaultException(
string $class
)
:
boolean
Deregister a fault exception from the fault exception stack
fault(
string|Exception $fault
=
null, string $code
=
Receiver
)
:
SoapFault
Generate 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()}.
getActor(
)
:
string
Retrieve actor
getClassmap(
)
:
mixed
Retrieve classmap
getEncoding(
)
:
string
Get encoding
getFaultExceptions(
)
:
array
Return fault exceptions list
getFunctions(
)
:
array
Return 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).
getLastRequest(
)
:
string
Retrieve request XML
getLastResponse(
)
:
string
Get response XML
getOptions(
)
:
array
Return array of options suitable for using with SoapServer constructor
getPersistence(
)
:
Zend_Soap_Server
Get server persistence
getReturnResponse(
)
:
boolean
Retrieve return response flag
getSoapFeatures(
)
:
int
Return current SOAP Features options
getSoapVersion(
)
:
int
Get SOAP version
getUri(
)
:
string
Retrieve URI
getWsdl(
)
:
string
Retrieve wsdl
getWsdlCache(
)
:
Get current SOAP Wsdl Caching option
handle(
DOMDocument|DOMNode|SimpleXMLElement|stdClass|string $request
=
null
)
:
void|string
Handle 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).
handlePhpErrors(
int $errno, string $errstr, string $errfile
=
null, int $errline
=
null, array $errcontext
=
null
)
:
void
Throw PHP errors as SoapFaults
loadFunctions(
$definition
)
:
void
Unimplemented: Load server definition
registerFaultException(
string|array $class
)
:
Zend_Soap_Server
Register a valid fault exception
setActor(
string $actor
)
:
Zend_Soap_Server
Set actor
Actor is the actor URI for the server.
setClass(
string $class, $namespace, $argv
=
null
)
:
Zend_Soap_Server
Attach 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.
setClassmap(
array $classmap
)
:
Zend_Soap_Server
Set classmap
setEncoding(
string $encoding
)
:
Zend_Soap_Server
Set encoding
setObject(
object $object
)
:
Zend_Soap_Server
Attach an object to a server
Accepts an instanciated object to use when handling requests.
setOptions(
array|Zend_Config $options
)
:
Zend_Soap_Server
Set Options
Allows setting options as an associative array of option => value pairs.
setPersistence(
int $mode
)
:
Zend_Soap_Server
Set server persistence
setReturnResponse(
boolean $flag
)
:
Zend_Soap_Server
Set 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()}.
setSoapFeatures(
string|int $feature
)
:
Zend_Soap_Server
Set the SOAP Feature options.
setSoapVersion(
int $version
)
:
Zend_Soap_Server
Set SOAP version
setUri(
string $uri
)
:
Zend_Soap_Server
Set URI
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
setWsdl(
string $wsdl
)
:
Zend_Soap_Server
Set wsdl
setWsdlCache(
$options
)
:
Zend_Soap_Server
Set the SOAP Wsdl Caching Options
validateUrn(
string $urn
)
:
true
Check for valid URN