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 = falseFlag: whether or not {@link handle()} should return a response instead
of automatically emitting it.
Default valuefalseDetails- Type
- boolean



int $_soapVersion = SOAP_1_2SOAP version to use; SOAP_1_2 by default, to allow processing of headers
Default valueSOAP_1_2Details- Type
- int
Methods



_initializeSoapErrorContext() : booleanMethod initalizes the error context that the SOAPServer enviroment will run in.
Returns| Type | Description |
|---|
| boolean | display_errors original value |



addFunction(array | string $function, string $namespace = '') : \Zend_Soap_ServerAttach a function as a server method
Parameters| Name | 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) : booleanDeregister a fault exception from the fault exception stack
Parameters| Name | Type | Description |
|---|
| $class | string | |
|---|
Returns 


fault(string | \Exception $fault = null, string $code = "Receiver") : \SoapFaultNote 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()}.
Parameters| Name | Type | Description |
|---|
| $fault | string | \Exception | |
|---|
| $code | string | SOAP Fault Codes |
|---|
ReturnsDetails- Link
- http://www.w3.org/TR/soap12-part1/#faultcodes



getFunctions() : 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).
ReturnsDetails- Access
- public



handlePhpErrors(int $errno, string $errstr, string $errfile = null, int $errline = null, array $errcontext = null) : voidThrow PHP errors as SoapFaults
Parameters| Name | Type | Description |
|---|
| $errno | int | |
|---|
| $errstr | string | |
|---|
| $errfile | string | |
|---|
| $errline | int | |
|---|
| $errcontext | array | |
|---|
Throws 


loadFunctions( $definition) : voidUnimplemented: Load server definition
Parameters| Name | Type | Description |
|---|
| $definition | | |
|---|
Throws 


registerFaultException(string | array $class) : \Zend_Soap_ServerRegister a valid fault exception
Parameters| Name | Type | Description |
|---|
| $class | string | array | Exception class or array of exception classes |
|---|
Returns 


setClass(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.
Parameters| Name | Type | Description |
|---|
| $class | string | Class Name which executes SOAP Requests at endpoint. |
|---|
| $namespace | | |
|---|
| $argv | | |
|---|
ReturnsThrows


setObject(object $object) : \Zend_Soap_ServerAttach an object to a server
Accepts an instanciated object to use when handling requests.
Parameters| Name | Type | Description |
|---|
| $object | object | |
|---|
Returns


setSoapFeatures(string | int $feature) : \Zend_Soap_ServerSet the SOAP Feature options.
Parameters| Name | Type | Description |
|---|
| $feature | string | int | |
|---|
Returns 


setSoapVersion(int $version) : \Zend_Soap_ServerParameters| Name | Type | Description |
|---|
| $version | int | One of the SOAP_1_1 or SOAP_1_2 constants |
|---|
ReturnsThrows 


setWsdl(string $wsdl) : \Zend_Soap_ServerParameters| Name | Type | Description |
|---|
| $wsdl | string | URI or path to a WSDL |
|---|
Returns 


setWsdlCache( $options) : \Zend_Soap_ServerSet the SOAP Wsdl Caching Options
Parameters| Name | Type | Description |
|---|
| $options | | |
|---|
Returns