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.
Zend_Soap_AutoDiscover

array
$_bindingStyle= 'array('style' => 'rpc''
soap:operation style
array('style' => 'rpc'
Details
array
$_operationBodyStyle= 'array('use' => 'encoded''
soap:body operation style options
array('use' => 'encoded'
Details
__construct(
boolean|string|\Zend_Soap_Wsdl_Strategy_Interface $strategy
=
true, string|\Zend_Uri $uri
=
null, string $wsdlClass
=
null
)
:
void
Constructor
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
)
:
void
Add 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_AutoDiscover
Add a Single or Multiple Functions to the WSDL
Name | Type | Description |
---|---|---|
$function | string | Function Name |
$namespace | string | Function namespace - Not Used |
Type | Description |
---|---|
\Zend_Soap_AutoDiscover |

dump(
string $filename
)
:
boolean
Proxy 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
)
:
void
Action to take when an error occurs
Name | Type | Description |
---|---|---|
$fault | string | |
$code | string|int |
Exception | Description |
---|---|
\Zend_Soap_AutoDiscover_Exception |

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

getSchema(
)
:
string
Detect and returns the current HTTP/HTTPS Schema
Type | Description |
---|---|
string |

getType(
string $type
)
:
string
Returns 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_Uri
Return the current Uri that the SOAP WSDL Service will be located at.
Type | Description |
---|---|
\Zend_Uri |

handle(
string $request
=
false
)
:
void
Handle the Request
Name | Type | Description |
---|---|---|
$request | string | A non-standard request - Not Used |

loadFunctions(
\unknown_type $definition
)
:
void
Load Functions
Name | Type | Description |
---|---|---|
$definition | \unknown_type |
Exception | Description |
---|---|
\Zend_Soap_AutoDiscover_Exception |

setBindingStyle(
array $bindingStyle
=
array()
)
:
\Zend_Soap_AutoDiscover
Set 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_AutoDiscover
Set the Class the SOAP server will use
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_AutoDiscover
Set 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_AutoDiscover
Set 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
)
:
void
Set Persistance
Name | Type | Description |
---|---|---|
$mode | int |
Exception | Description |
---|---|
\Zend_Soap_AutoDiscover_Exception |

setUri(
\Zend_Uri|string $uri
)
:
\Zend_Soap_AutoDiscover
Set 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 |

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