Soap/Server.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Soap
- Subpackage
- Server
\Zend_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()array()Details- Type
- array

array $_classmap- Type
- array

array|int $_functions = array()array()Details- Type
- array | int

boolean $_returnResponse = falsefalseDetails- Type
- boolean

int $_soapVersion = SOAP_1_2SOAP_1_2Details- Type
- int
Methods

__construct(string $wsdl = null, array $options = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $wsdl | string | |
| $options | array |

_getSoap() : \SoapServerGet SoapServer object
| Type | Description |
|---|---|
| \SoapServer |

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

_setRequest(\DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string $request) : \Zend_Soap_ServerSet request
| Name | Type | Description |
|---|---|---|
| $request | \DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

addFunction(array | string $function, string $namespace = '') : \Zend_Soap_ServerAttach a function as a server method
| 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 |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | on invalid functions |

deregisterFaultException(string $class) : booleanDeregister a fault exception from the fault exception stack
| Name | Type | Description |
|---|---|---|
| $class | string |
| Type | Description |
|---|---|
| boolean |

fault(string | \Exception $fault = null, string $code = "Receiver") : \SoapFaultGenerate a server fault
| Name | Type | Description |
|---|---|---|
| $fault | string | \Exception | |
| $code | string | SOAP Fault Codes |
| Type | Description |
|---|---|
| \SoapFault |

getFunctions() : arrayReturn a server definition array
| Type | Description |
|---|---|
| array |
- Access
- public

getOptions() : arrayReturn array of options suitable for using with SoapServer constructor
| Type | Description |
|---|---|
| array |

handle(\DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string $request = null) : void | stringHandle a request
| Name | Type | Description |
|---|---|---|
| $request | \DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string | Optional request |
| Type | Description |
|---|---|
| void | string |

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

loadFunctions( $definition) : voidUnimplemented: Load server definition
| Name | Type | Description |
|---|---|---|
| $definition |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | Unimplemented |

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

setActor(string $actor) : \Zend_Soap_ServerSet actor
| Name | Type | Description |
|---|---|---|
| $actor | string |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

setClass(string $class, $namespace = '', $argv = null) : \Zend_Soap_ServerAttach a class to a server
| Name | Type | Description |
|---|---|---|
| $class | string | Class Name which executes SOAP Requests at endpoint. |
| $namespace | ||
| $argv |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | if called more than once, or if class does not exist |

setClassmap(array $classmap) : \Zend_Soap_ServerSet classmap
| Name | Type | Description |
|---|---|---|
| $classmap | array |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | for any invalid class in the class map |

setEncoding(string $encoding) : \Zend_Soap_ServerSet encoding
| Name | Type | Description |
|---|---|---|
| $encoding | string |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | with invalid encoding argument |

setObject(object $object) : \Zend_Soap_ServerAttach an object to a server
| Name | Type | Description |
|---|---|---|
| $object | object |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

setOptions(array | \Zend_Config $options) : \Zend_Soap_ServerSet Options
| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

setPersistence(int $mode) : \Zend_Soap_ServerSet server persistence
| Name | Type | Description |
|---|---|---|
| $mode | int |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

setReturnResponse(boolean $flag) : \Zend_Soap_ServerSet return response flag
| Name | Type | Description |
|---|---|---|
| $flag | boolean |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

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

setSoapVersion(int $version) : \Zend_Soap_ServerSet SOAP version
| Name | Type | Description |
|---|---|---|
| $version | int | One of the SOAP_1_1 or SOAP_1_2 constants |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | with invalid soap version argument |

setUri(string $uri) : \Zend_Soap_ServerSet URI
| Name | Type | Description |
|---|---|---|
| $uri | string |
| Type | Description |
|---|---|
| \Zend_Soap_Server |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | with invalid uri argument |

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

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

setWsiCompliant(boolean $value) : \Zend_Soap_ServerSet WS-I compliant
| Name | Type | Description |
|---|---|---|
| $value | boolean |
| Type | Description |
|---|---|
| \Zend_Soap_Server |

validateUrn(string $urn) : trueCheck for valid URN
| Name | Type | Description |
|---|---|---|
| $urn | string |
| Type | Description |
|---|---|
| true |
| Exception | Description |
|---|---|
| \Zend_Soap_Server_Exception | on invalid URN |