Soap/AutoDiscover.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Soap
- Subpackage
- AutoDiscover
- Version
- $Id: AutoDiscover.php 24842 2012-05-31 18:31:28Z rob $
\Zend_Soap_AutoDiscover
- Implements
- \Zend_Server_Interface
- Category
- Zend
Properties

array $_bindingStyle = array('style' => 'rpc', 'transport' => 'http://schemas.xmlsoap.org/soap/http')array('style' => 'rpc', 'transport' => 'http://schemas.xmlsoap.org/soap/http')Details- Type
- array

array $_operationBodyStyle = array('use' => 'encoded', 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/")array('use' => 'encoded', 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/")Details- Type
- array
Methods

__construct(boolean | string | \Zend_Soap_Wsdl_Strategy_Interface $strategy = true, string | \Zend_Uri $uri = null, string $wsdlClass = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $strategy | boolean | string | \Zend_Soap_Wsdl_Strategy_Interface | |
| $uri | string | \Zend_Uri | |
| $wsdlClass | string |

_addFunctionToWsdl(\Zend_Server_Reflection_Function_Abstract $function, \Zend_Soap_Wsdl $wsdl, object $port, object $binding) : voidAdd a function to the WSDL document.
| Name | Type | Description |
|---|---|---|
| $function | \Zend_Server_Reflection_Function_Abstract | function to add |
| $wsdl | \Zend_Soap_Wsdl | WSDL document |
| $port | object | wsdl:portType |
| $binding | object | wsdl:binding |

addFunction(string $function, string $namespace = '') : \Zend_Soap_AutoDiscoverAdd a Single or Multiple Functions to the WSDL
Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
| Name | Type | Description |
|---|---|---|
| $function | string | Function Name |
| $namespace | string | Function namespace - Not Used |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |

dump(string $filename) : booleanProxy to WSDL dump function
| Name | Type | Description |
|---|---|---|
| $filename | string |
| Type | Description |
|---|---|
| boolean |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |

fault(string $fault = null, string | int $code = null) : mixedAction to take when an error occurs
| Name | Type | Description |
|---|---|---|
| $fault | string | |
| $code | string | int |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |

getFunctions() : arrayReturn an array of functions in the WSDL
Returns a server definition array as created using Zend_Server_Reflection. Can be used for server introspection, documentation, or persistence.
| Type | Description |
|---|---|
| array |

getRequestUriWithoutParameters() : stringDetect and return the current script name without parameters
| Type | Description |
|---|---|
| string |

getType(string $type) : stringReturns an XSD Type for the given PHP type
| Name | Type | Description |
|---|---|---|
| $type | string | PHP Type to get the XSD type for |
| Type | Description |
|---|---|
| string |

getUri() : \Zend_UriReturn the current Uri that the SOAP WSDL Service will be located at.
| Type | Description |
|---|---|
| \Zend_Uri |

handle(string $request = false) : mixedHandle the Request
Requests may be passed in, or the server may automagically determine the request based on defaults. Dispatches server request to appropriate method and returns a response
| Name | Type | Description |
|---|---|---|
| $request | string | A non-standard request - Not Used |
| Type | Description |
|---|---|
| mixed |

loadFunctions(\unknown_type $definition) : voidLoad Functions
Used for persistence; loads a construct as returned by getFunctions().
| Name | Type | Description |
|---|---|---|
| $definition | \unknown_type |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |

setBindingStyle(array $bindingStyle = array()) : \Zend_Soap_AutoDiscoverSet Binding soap:binding style.
By default 'style' is 'rpc' and 'transport' is 'http://schemas.xmlsoap.org/soap/http'.
| Name | Type | Description |
|---|---|---|
| $bindingStyle | array |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |

setClass(string $class, string $namespace = '', array $argv = null) : \Zend_Soap_AutoDiscoverSet the Class the SOAP server will use
The individual implementations should probably allow passing a variable number of arguments in, so that developers may define custom runtime arguments to pass to server methods.
Namespacing is primarily for xmlrpc, but could be used for other implementations as well.
| Name | Type | Description |
|---|---|---|
| $class | string | Class Name |
| $namespace | string | Class Namspace - Not Used |
| $argv | array | Arguments to instantiate the class - Not Used |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |

setComplexTypeStrategy(boolean | string | \Zend_Soap_Wsdl_Strategy_Interface $strategy) : \Zend_Soap_AutoDiscoverSet the strategy that handles functions and classes that are added AFTER this call.
| Name | Type | Description |
|---|---|---|
| $strategy | boolean | string | \Zend_Soap_Wsdl_Strategy_Interface |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |

setOperationBodyStyle(array $operationStyle = array()) : \Zend_Soap_AutoDiscoverSet options for all the binding operations soap:body elements.
By default the options are set to 'use' => 'encoded' and 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/".
| Name | Type | Description |
|---|---|---|
| $operationStyle | array |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |

setPersistence(int $mode) : voidSet Persistance
| Name | Type | Description |
|---|---|---|
| $mode | int |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |

setUri(\Zend_Uri | string $uri) : \Zend_Soap_AutoDiscoverSet the location at which the WSDL file will be availabe.
| Name | Type | Description |
|---|---|---|
| $uri | \Zend_Uri | string |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |
- See
- \Zend_Soap_Exception

setWsdlClass(string $wsdlClass) : \Zend_Soap_AutoDiscoverSet the name of the WSDL handling class.
| Name | Type | Description |
|---|---|---|
| $wsdlClass | string |
| Type | Description |
|---|---|
| \Zend_Soap_AutoDiscover |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |
- See
- \Zend_Soap_Exception
- See
- \Zend_Soap_Exception

toXml() : stringProxy to WSDL toXml() function
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Soap_AutoDiscover_Exception |