Zend_Soap_Server
category | Zend |
---|---|
package | Zend_Soap |
subpackage | Server |
uses | |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
version | $Id$ |
__construct(string $wsdl= null
, array $options= null
) : void
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
addFunction(array|string $function, string $namespace = ''
) : \Zend_Soap_Server
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
inherited_from | \Zend_Server_Interface::addFunction() |
---|
array
string
Function name, array of function names to attach, or SOAP_FUNCTIONS_ALL to attach all functions
string
Ignored
\Zend_Soap_Server_Exception |
on invalid functions |
---|
\Zend_Soap_Server
deregisterFaultException(string $class) : boolean
string
boolean
fault(string|\Exception $fault= null
, string $code= "Receiver"
) : \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 |
---|---|
inherited_from | \Zend_Server_Interface::fault() |
string
\Exception
string
SOAP Fault Codes
\SoapFault
getActor() : string
string
getClassmap() : mixed
mixed
getEncoding() : string
string
getFaultExceptions() : 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).
access | public |
---|---|
inherited_from | \Zend_Server_Interface::getFunctions() |
array
getLastRequest() : string
string
getLastResponse() : string
string
getOptions() : array
array
getPersistence() : \Zend_Soap_Server
\Zend_Soap_Server
getReturnResponse() : boolean
boolean
getSoapFeatures() : integer
integer
getSoapVersion() : integer
integer
getUri() : string
string
getWsdl() : string
string
getWsdlCache()
getWsiCompliant() : boolean
boolean
handle(\DOMDocument|\DOMNode|\SimpleXMLElement|\stdClass|string $request = null
) : void | string
Instantiates SoapServer object with options set in object, and dispatches its handle() method.
$request may be any of:
If no request is passed, pulls request using php:://input (for cross-platform compatability purposes).
inherited_from | \Zend_Server_Interface::handle() |
---|
\DOMDocument
\DOMNode
\SimpleXMLElement
\stdClass
string
Optional request
void
string
handlePhpErrors(integer $errno, string $errstr, string $errfile= null
, integer $errline= null
, array $errcontext= null
) : void
integer
string
string
integer
array
\SoapFault |
---|
loadFunctions($definition) : void
Used for persistence; loads a construct as returned by \getFunctions().
inherited_from | \Zend_Server_Interface::loadFunctions() |
---|
\Zend_Soap_Server_Exception |
Unimplemented |
---|
registerFaultException(string|array $class) : \Zend_Soap_Server
string
array
Exception class or array of exception classes
\Zend_Soap_Server
setActor(string $actor) : \Zend_Soap_Server
Actor is the actor URI for the server.
string
\Zend_Soap_Server
setClass(string $class, string $namespace= ''
, $argv= null
) : \Zend_Soap_Server
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 preconfigured object instances as request handlers.
inherited_from | \Zend_Server_Interface::setClass() |
---|
string
Class Name which executes SOAP Requests at endpoint.
\Zend_Soap_Server_Exception |
if called more than once, or if class does not exist |
---|
\Zend_Soap_Server
setClassmap(array $classmap) : \Zend_Soap_Server
array
\Zend_Soap_Server_Exception |
for any invalid class in the class map |
---|
\Zend_Soap_Server
setEncoding(string $encoding) : \Zend_Soap_Server
string
\Zend_Soap_Server_Exception |
with invalid encoding argument |
---|
\Zend_Soap_Server
setObject(object $object) : \Zend_Soap_Server
Accepts an instanciated object to use when handling requests.
object
\Zend_Soap_Server
setOptions(array|\Zend_Config $options) : \Zend_Soap_Server
Allows setting options as an associative array of option => value pairs.
array
\Zend_Config
\Zend_Soap_Server
setPersistence(integer $mode) : \Zend_Soap_Server
inherited_from | \Zend_Server_Interface::setPersistence() |
---|
integer
\Zend_Soap_Server
setReturnResponse(boolean $flag) : \Zend_Soap_Server
If true, \handle() will return the response instead of automatically sending it back to the requesting client.
The response is always available via \getResponse().
boolean
\Zend_Soap_Server
setSoapFeatures(string|integer $feature) : \Zend_Soap_Server
string
integer
\Zend_Soap_Server
setSoapVersion(integer $version) : \Zend_Soap_Server
integer
One of the SOAP_1_1 or SOAP_1_2 constants
\Zend_Soap_Server_Exception |
with invalid soap version argument |
---|
\Zend_Soap_Server
setUri(string $uri) : \Zend_Soap_Server
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
string
\Zend_Soap_Server_Exception |
with invalid uri argument |
---|
\Zend_Soap_Server
setWsdl(string $wsdl) : \Zend_Soap_Server
string
URI or path to a WSDL
\Zend_Soap_Server
setWsdlCache($options) : \Zend_Soap_Server
\Zend_Soap_Server
setWsiCompliant(boolean $value) : \Zend_Soap_Server
boolean
\Zend_Soap_Server
validateUrn(string $urn) : true
string
\Zend_Soap_Server_Exception |
on invalid URN |
---|
true
_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 peristence.
\SoapServer
_initializeSoapErrorContext() : boolean
boolean
display_errors original value_setRequest(\DOMDocument|\DOMNode|\SimpleXMLElement|\stdClass|string $request) : \Zend_Soap_Server
$request may be any of:
\DOMDocument
\DOMNode
\SimpleXMLElement
\stdClass
string
\Zend_Soap_Server
$_actor : string
$_class : string
$_classArgs : array
array()
$_classmap : array
$_encoding : string
$_faultExceptions : array
array()
$_features : integer
$_functions : array | integer
array()
$_object
$_persistence : integer
$_request : string
$_response : string
$_returnResponse : boolean
false
$_soapVersion : integer
SOAP_1_2
$_uri : string
$_wsdl : string
$_wsdlCache : mixed
$_wsiCompliant : boolean