Zend_Soap_AutoDiscover

category Zend
package Zend_Soap
subpackage AutoDiscover

 Methods

Constructor

__construct(boolean|string|\Zend_Soap_Wsdl_Strategy_Interface $strategy = true, string|\Zend_Uri $uri = null, string $wsdlClass = null

Parameters

$strategy

booleanstring\Zend_Soap_Wsdl_Strategy_Interface

$uri

string\Zend_Uri

$wsdlClass

string

Add a Single or Multiple Functions to the WSDL

addFunction(string $function, string $namespace = '') : \Zend_Soap_AutoDiscover

Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.

inherited_from \Zend_Server_Interface::addFunction()

Parameters

$function

string

Function Name

$namespace

string

Function namespace - Not Used

Returns

\Zend_Soap_AutoDiscover

Proxy to WSDL dump function

dump(string $filename) : boolean

Parameters

$filename

string

Exceptions

\Zend_Soap_AutoDiscover_Exception

Returns

boolean

Action to take when an error occurs

fault(string $fault = null, string|integer $code = null
inherited_from \Zend_Server_Interface::fault()

Parameters

$fault

string

$code

stringinteger

Exceptions

\Zend_Soap_AutoDiscover_Exception

Return an array of functions in the WSDL

getFunctions() : array

Returns a server definition array as created using *. Can be used for server introspection, documentation, or persistence.

inherited_from \Zend_Server_Interface::getFunctions()

Returns

array

Returns an XSD Type for the given PHP type

getType(string $type) : string

Parameters

$type

string

PHP Type to get the XSD type for

Returns

string

Return the current Uri that the SOAP WSDL Service will be located at.

getUri() : \Zend_Uri

Returns

\Zend_Uri

Return the name of the WSDL handling class.

getWsdlClass() : string

Returns

string

Handle the Request

handle(string $request = false

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

inherited_from \Zend_Server_Interface::handle()

Parameters

$request

string

A non-standard request - Not Used

Load Functions

loadFunctions(\unknown_type $definition) 

Used for persistence; loads a construct as returned by \getFunctions().

inherited_from \Zend_Server_Interface::loadFunctions()

Parameters

$definition

\unknown_type

Exceptions

\Zend_Soap_AutoDiscover_Exception

Set Binding soap:binding style.

setBindingStyle(array $bindingStyle = array()) : \Zend_Soap_AutoDiscover

By default 'style' is 'rpc' and 'transport' is 'http://schemas.xmlsoap.org/soap/http'.

Parameters

$bindingStyle

array

Returns

\Zend_Soap_AutoDiscover

Set the Class the SOAP server will use

setClass(string $class, string $namespace = '', array $argv = null) : \Zend_Soap_AutoDiscover

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.

inherited_from \Zend_Server_Interface::setClass()

Parameters

$class

string

Class Name

$namespace

string

Class Namspace - Not Used

$argv

array

Arguments to instantiate the class - Not Used

Returns

\Zend_Soap_AutoDiscover

Set the strategy that handles functions and classes that are added AFTER this call.

setComplexTypeStrategy(boolean|string|\Zend_Soap_Wsdl_Strategy_Interface $strategy) : \Zend_Soap_AutoDiscover

Parameters

$strategy

booleanstring\Zend_Soap_Wsdl_Strategy_Interface

Returns

\Zend_Soap_AutoDiscover

Set options for all the binding operations soap:body elements.

setOperationBodyStyle(array $operationStyle = array()) : \Zend_Soap_AutoDiscover

By default the options are set to 'use' => 'encoded' and 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/".

see

Parameters

$operationStyle

array

Exceptions

\Zend_Soap_AutoDiscover_Exception

Returns

\Zend_Soap_AutoDiscover

Set Persistance

setPersistence(integer $mode) 
inherited_from \Zend_Server_Interface::setPersistence()

Parameters

$mode

integer

Exceptions

\Zend_Soap_AutoDiscover_Exception

Set the location at which the WSDL file will be availabe.

setUri(\Zend_Uri|string $uri) : \Zend_Soap_AutoDiscover
see

Parameters

$uri

\Zend_Uristring

Exceptions

\Zend_Soap_AutoDiscover_Exception

Returns

\Zend_Soap_AutoDiscover

Set the name of the WSDL handling class.

setWsdlClass(string $wsdlClass) : \Zend_Soap_AutoDiscover
see
see

Parameters

$wsdlClass

string

Exceptions

\Zend_Soap_AutoDiscover_Exception

Returns

\Zend_Soap_AutoDiscover

Proxy to WSDL toXml() function

toXml() : string

Exceptions

\Zend_Soap_AutoDiscover_Exception

Returns

string

Add a function to the WSDL document.

_addFunctionToWsdl(\Zend_Server_Reflection_Function_Abstract $function, \Zend_Soap_Wsdl $wsdl, object $port, object $binding) : void

Parameters

$function

\Zend_Server_Reflection_Function_Abstract

function to add

$wsdl

\Zend_Soap_Wsdl

WSDL document

$port

object

wsdl:portType

$binding

object

wsdl:binding

Detect and return the current hostname

getHostName() : string

Returns

string

Detect and return the current script name without parameters

getRequestUriWithoutParameters() : string

Returns

string

Detect and returns the current HTTP/HTTPS Schema

getSchema() : string

Returns

string

 Properties

 

soap:operation style

$_bindingStyle : array

Default

array('style' => 'rpc', 'transport' => 'http://schemas.xmlsoap.org/soap/http')
 

$_functions

$_functions : array

Default

array()
 

soap:body operation style options

$_operationBodyStyle : array

Default

array('use' => 'encoded', 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/")
 

$_reflection

$_reflection : \Zend_Server_Reflection

Default

null
 

$_strategy

$_strategy : boolean

Default

 

Url where the WSDL file will be available at.

$_uri : \WSDL

Default

 

$_wsdl

$_wsdl : \Zend_Soap_Wsdl

Default

null
 

Name of the class to handle the WSDL creation.

$_wsdlClass : string

Default

'Zend_Soap_Wsdl'