Soap/Server.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Soap
- Subpackage
- Server
Package: Zend_Soap\ServerZend_Soap_Server
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
-
- Version
- $Id$
Properties
array $_classArgs = array()
Arguments to pass to {@link $_class} constructor
Default valuearray()
Details- Type
- array
array $_faultExceptions = array()
Registered fault exceptions
Default valuearray()
Details- Type
- array
array|int $_functions = array()
Functions registered with this server; may be either an array or the SOAP_FUNCTIONS_ALL
constant
Default valuearray()
Details- Type
- array | int
boolean $_returnResponse = false
Flag: whether or not {@link handle()} should return a response instead
of automatically emitting it.
Default valuefalse
Details- Type
- boolean
int $_soapVersion = SOAP_1_2
SOAP version to use; SOAP_1_2 by default, to allow processing of headers
Default valueSOAP_1_2
Details- Type
- int
Methods
_initializeSoapErrorContext() : boolean
Method initalizes the error context that the SOAPServer enviroment will run in.
ReturnsType | Description |
---|
boolean | display_errors original value |
addFunction(array | string $function, string $namespace = '') : \Zend_Soap_Server
Attach a function as a server method
ParametersName | Type | Description |
---|
$function | array | string | Function name, array of function names to attach,
or SOAP_FUNCTIONS_ALL to attach all functions |
---|
$namespace | string | Ignored |
---|
ReturnsThrows deregisterFaultException(string $class) : boolean
Deregister a fault exception from the fault exception stack
ParametersName | Type | Description |
---|
$class | string | |
---|
Returns 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()}.
ParametersName | Type | Description |
---|
$fault | string | \Exception | |
---|
$code | string | SOAP Fault Codes |
---|
ReturnsDetails- Link
- http://www.w3.org/TR/soap12-part1/#faultcodes
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).
ReturnsDetails- Access
- public
handlePhpErrors(int $errno, string $errstr, string $errfile = null, int $errline = null, array $errcontext = null) : void
Throw PHP errors as SoapFaults
ParametersName | Type | Description |
---|
$errno | int | |
---|
$errstr | string | |
---|
$errfile | string | |
---|
$errline | int | |
---|
$errcontext | array | |
---|
Throws loadFunctions( $definition) : void
Unimplemented: Load server definition
ParametersName | Type | Description |
---|
$definition | | |
---|
Throws registerFaultException(string | array $class) : \Zend_Soap_Server
Register a valid fault exception
ParametersName | Type | Description |
---|
$class | string | array | Exception class or array of exception classes |
---|
Returns 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.
ParametersName | Type | Description |
---|
$class | string | Class Name which executes SOAP Requests at endpoint. |
---|
$namespace | | |
---|
$argv | | |
---|
ReturnsThrowssetObject(object $object) : \Zend_Soap_Server
Attach an object to a server
Accepts an instanciated object to use when handling requests.
ParametersName | Type | Description |
---|
$object | object | |
---|
ReturnssetSoapFeatures(string | int $feature) : \Zend_Soap_Server
Set the SOAP Feature options.
ParametersName | Type | Description |
---|
$feature | string | int | |
---|
Returns setSoapVersion(int $version) : \Zend_Soap_Server
ParametersName | Type | Description |
---|
$version | int | One of the SOAP_1_1 or SOAP_1_2 constants |
---|
ReturnsThrows setWsdl(string $wsdl) : \Zend_Soap_Server
ParametersName | Type | Description |
---|
$wsdl | string | URI or path to a WSDL |
---|
Returns setWsdlCache( $options) : \Zend_Soap_Server
Set the SOAP Wsdl Caching Options
ParametersName | Type | Description |
---|
$options | | |
---|
Returns