Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AutoDiscover Class Reference

Public Member Functions

 __construct (ComplexTypeStrategy $strategy=null, $endpointUri=null, $wsdlClass=null, array $classMap=[])
 Constructor.
 
 setDiscoveryStrategy (DiscoveryStrategy $discoveryStrategy)
 Set the discovery strategy for method type and other information.
 
 getDiscoveryStrategy ()
 Get the discovery strategy.
 
 getClassMap ()
 Get the class map of php to wsdl mappings.
 
 setClassMap ($classMap)
 Set the class map of php to wsdl mappings.
 
 setServiceName ($serviceName)
 Set service name.
 
 getServiceName ()
 Get service name.
 
 setUri ($uri)
 Set the location at which the WSDL file will be available.
 
 getUri ()
 Return the current Uri that the SOAP WSDL Service will be located at.
 
 setWsdlClass ($wsdlClass)
 Set the name of the WSDL handling class.
 
 getWsdlClass ()
 Return the name of the WSDL handling class.
 
 setOperationBodyStyle (array $operationStyle=[])
 Set options for all the binding operations soap:body elements.
 
 setBindingStyle (array $bindingStyle=[])
 Set Binding soap:binding style.
 
 setComplexTypeStrategy (ComplexTypeStrategy $strategy)
 Set the strategy that handles functions and classes that are added AFTER this call.
 
 setClass ($class)
 Set the Class the SOAP server will use.
 
 addFunction ($function)
 Add a Single or Multiple Functions to the WSDL.
 
 generate ()
 Generate the WSDL file from the configured input.
 
 dump ($filename)
 Proxy to WSDL dump function.
 
 toXml ()
 Proxy to WSDL toXml() function.
 
 handle ()
 Handle WSDL document.
 

Protected Member Functions

 generateClass ()
 Generate the WSDL for a service class.
 
 generateFunctions ()
 Generate the WSDL for a set of functions.
 
 generateWsdl (array $reflectionMethods)
 Generate the WSDL for a set of reflection method instances.
 
 addFunctionToWsdl ($function, $wsdl, $port, $binding)
 Add a function to the WSDL document.
 

Protected Attributes

 $serviceName
 
 $reflection = null
 
 $functions = []
 
 $class
 
 $strategy
 
 $uri
 
 $operationBodyStyle
 
 $bindingStyle
 
 $wsdlClass = 'Zend\Soap\Wsdl'
 
 $classMap = []
 
 $discoveryStrategy
 

Constructor & Destructor Documentation

__construct ( ComplexTypeStrategy  $strategy = null,
  $endpointUri = null,
  $wsdlClass = null,
array  $classMap = [] 
)

Constructor.

Parameters
null | ComplexTypeStrategy$strategy
null | string | Uri\Uri$endpointUri
null | string$wsdlClass
null | array$classMap

Member Function Documentation

addFunction (   $function)

Add a Single or Multiple Functions to the WSDL.

Parameters
string$functionFunction Name
Returns
self
Exceptions
Exception\InvalidArgumentException
addFunctionToWsdl (   $function,
  $wsdl,
  $port,
  $binding 
)
protected

Add a function to the WSDL document.

Parameters
$functionReflection function to add
$wsdlWsdl WSDL document
$portwsdl:portType
$bindingwsdl:binding
Exceptions
Exception\InvalidArgumentException
dump (   $filename)

Proxy to WSDL dump function.

Parameters
string$filename
Returns
bool
Exceptions
Exception\RuntimeException
generate ( )

Generate the WSDL file from the configured input.

Returns
Wsdl
Exceptions
Exception\RuntimeException
generateClass ( )
protected

Generate the WSDL for a service class.

Returns
Wsdl
generateFunctions ( )
protected

Generate the WSDL for a set of functions.

Returns
Wsdl
generateWsdl ( array  $reflectionMethods)
protected

Generate the WSDL for a set of reflection method instances.

Parameters
array$reflectionMethods
Returns
Wsdl
getClassMap ( )

Get the class map of php to wsdl mappings.

Returns
array
getDiscoveryStrategy ( )

Get the discovery strategy.

Returns
DiscoveryStrategy
getServiceName ( )

Get service name.

Returns
string
Exceptions
Exception\RuntimeException
getUri ( )

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

Returns
Uri
Exceptions
Exception\RuntimeException
getWsdlClass ( )

Return the name of the WSDL handling class.

Returns
string
handle ( )

Handle WSDL document.

setBindingStyle ( array  $bindingStyle = [])

Set Binding soap:binding style.

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

Parameters
array$bindingStyle
Returns
self
setClass (   $class)

Set the Class the SOAP server will use.

Parameters
string$classClass Name
Returns
self
setClassMap (   $classMap)

Set the class map of php to wsdl mappings.

Parameters
array$classMap
Returns
self
Exceptions
Exception\InvalidArgumentException
setComplexTypeStrategy ( ComplexTypeStrategy  $strategy)

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

Parameters
ComplexTypeStrategy$strategy
Returns
self
setDiscoveryStrategy ( DiscoveryStrategy  $discoveryStrategy)

Set the discovery strategy for method type and other information.

Parameters
DiscoveryStrategy$discoveryStrategy
Returns
self
setOperationBodyStyle ( array  $operationStyle = [])

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/".

Parameters
array$operationStyle
Returns
self
Exceptions
Exception\InvalidArgumentException
setServiceName (   $serviceName)

Set service name.

Parameters
string$serviceName
Returns
self
Exceptions
Exception\InvalidArgumentException
setUri (   $uri)

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

Parameters
Uri\Uri | string$uri
Returns
self
Exceptions
Exception\InvalidArgumentException
setWsdlClass (   $wsdlClass)

Set the name of the WSDL handling class.

Parameters
string$wsdlClass
Returns
self
Exceptions
Exception\InvalidArgumentException
toXml ( )

Proxy to WSDL toXml() function.

Returns
string
Exceptions
Exception\RuntimeException

Member Data Documentation

$bindingStyle
protected
Initial value:
= [
'style' => 'rpc'
$class
protected
$classMap = []
protected
$discoveryStrategy
protected
$functions = []
protected
$operationBodyStyle
protected
Initial value:
= [
'use' => 'encoded'
$reflection = null
protected
$serviceName
protected
$strategy
protected
$uri
protected
$wsdlClass = 'Zend\Soap\Wsdl'
protected