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 = false
false
Details- Type
- boolean
int $_soapVersion = SOAP_1_2
SOAP_1_2
Details- Type
- int
Methods
__construct(string $wsdl = null, array $options = null) : void
Constructor
Name | Type | Description |
---|---|---|
$wsdl | string | |
$options | array |
_getSoap() : \SoapServer
Get SoapServer object
Type | Description |
---|---|
\SoapServer |
_initializeSoapErrorContext() : boolean
Method 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_Server
Set request
Name | Type | Description |
---|---|---|
$request | \DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string |
Type | Description |
---|---|
\Zend_Soap_Server |
addFunction(array | string $function, string $namespace = '') : \Zend_Soap_Server
Attach 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) : boolean
Deregister a fault exception from the fault exception stack
Name | Type | Description |
---|---|---|
$class | string |
Type | Description |
---|---|
boolean |
fault(string | \Exception $fault = null, string $code = "Receiver") : \SoapFault
Generate a server fault
Name | Type | Description |
---|---|---|
$fault | string | \Exception | |
$code | string | SOAP Fault Codes |
Type | Description |
---|---|
\SoapFault |
getFunctions() : array
Return a server definition array
Type | Description |
---|---|
array |
- Access
- public
getOptions() : array
Return array of options suitable for using with SoapServer constructor
Type | Description |
---|---|
array |
handle(\DOMDocument | \DOMNode | \SimpleXMLElement | \stdClass | string $request = null) : void | string
Handle 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) : void
Throw PHP errors as SoapFaults
Name | Type | Description |
---|---|---|
$errno | int | |
$errstr | string | |
$errfile | string | |
$errline | int | |
$errcontext | array |
Exception | Description |
---|---|
\SoapFault |
loadFunctions( $definition) : void
Unimplemented: Load server definition
Name | Type | Description |
---|---|---|
$definition |
Exception | Description |
---|---|
\Zend_Soap_Server_Exception | Unimplemented |
registerFaultException(string | array $class) : \Zend_Soap_Server
Register 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_Server
Set actor
Name | Type | Description |
---|---|---|
$actor | string |
Type | Description |
---|---|
\Zend_Soap_Server |
setClass(string $class, $namespace = '', $argv = null) : \Zend_Soap_Server
Attach 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_Server
Set 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_Server
Set 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_Server
Attach an object to a server
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
\Zend_Soap_Server |
setOptions(array | \Zend_Config $options) : \Zend_Soap_Server
Set Options
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config |
Type | Description |
---|---|
\Zend_Soap_Server |
setPersistence(int $mode) : \Zend_Soap_Server
Set server persistence
Name | Type | Description |
---|---|---|
$mode | int |
Type | Description |
---|---|
\Zend_Soap_Server |
setReturnResponse(boolean $flag) : \Zend_Soap_Server
Set return response flag
Name | Type | Description |
---|---|---|
$flag | boolean |
Type | Description |
---|---|
\Zend_Soap_Server |
setSoapFeatures(string | int $feature) : \Zend_Soap_Server
Set the SOAP Feature options.
Name | Type | Description |
---|---|---|
$feature | string | int |
Type | Description |
---|---|
\Zend_Soap_Server |
setSoapVersion(int $version) : \Zend_Soap_Server
Set 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_Server
Set 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_Server
Set wsdl
Name | Type | Description |
---|---|---|
$wsdl | string | URI or path to a WSDL |
Type | Description |
---|---|
\Zend_Soap_Server |
setWsdlCache( $options) : \Zend_Soap_Server
Set the SOAP Wsdl Caching Options
Name | Type | Description |
---|---|---|
$options |
Type | Description |
---|---|
\Zend_Soap_Server |
setWsiCompliant(boolean $value) : \Zend_Soap_Server
Set WS-I compliant
Name | Type | Description |
---|---|---|
$value | boolean |
Type | Description |
---|---|
\Zend_Soap_Server |
validateUrn(string $urn) : true
Check for valid URN
Name | Type | Description |
---|---|---|
$urn | string |
Type | Description |
---|---|
true |
Exception | Description |
---|---|
\Zend_Soap_Server_Exception | on invalid URN |