\Zend\Soap\AutoDiscover

 Methods

Constructor

__construct(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy, null | string | \Zend\Uri\Uri $endpointUri, null | string $wsdlClass, array $classMap) 

Parameters

$endpointUri

nullstring\Zend\Uri\Uri

$wsdlClass

nullstring

$classMap

nullarray

Add a Single or Multiple Functions to the WSDL

addFunction(string $function) : \Zend\Soap\AutoDiscover

Parameters

$function

string

Function Name

Returns

Proxy to WSDL dump function

dump(string $filename) : bool

Parameters

$filename

string

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

bool

Generate the WSDL file from the configured input.

generate() : \Zend\Soap\Wsdl

Get the class map of php to wsdl qname types.

getClassMap() : array

Returns

array

Get service name

getServiceName() : string

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

string

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

getUri() : \Zend\Uri\Uri

Return the name of the WSDL handling class.

getWsdlClass() : string

Returns

string

Handle WSDL document.

handle() 

Set Binding soap:binding style.

setBindingStyle(array $bindingStyle) : \Zend\Soap\AutoDiscover

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

Parameters

$bindingStyle

array

Returns

Set the Class the SOAP server will use

setClass(string $class) : \Zend\Soap\AutoDiscover

Parameters

$class

string

Class Name

Returns

Set the class map of php to wsdl qname types.

setClassMap($classMap) : \Zend\Soap\AutoDiscover

Parameters

$classMap

Returns

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

setComplexTypeStrategy(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy) : \Zend\Soap\AutoDiscover

Set the discovery strategy for method type and other information.

setDiscoveryStrategy(\Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface $discoveryStrategy) : \Zend\Soap\AutoDiscover

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

setOperationBodyStyle(array $operationStyle) : \Zend\Soap\AutoDiscover

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

Parameters

$operationStyle

array

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

Set service name

setServiceName(string $serviceName) : \Zend\Soap\AutoDiscover

Parameters

$serviceName

string

Returns

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

setUri(\Zend\Uri\Uri | string $uri) : \Zend\Soap\AutoDiscover

Set the name of the WSDL handling class.

setWsdlClass(string $wsdlClass) : \Zend\Soap\AutoDiscover

Parameters

$wsdlClass

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

Proxy to WSDL toXml() function

toXml() : string

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

string

Add a function to the WSDL document.

_addFunctionToWsdl(\Zend\Soap\$function $function, \Zend\Soap\$wsdl $wsdl, \Zend\Soap\$port $port, \Zend\Soap\$binding $binding) : void

Parameters

$function

\Zend\Soap\$function

\Zend\Server\Reflection\AbstractFunction function to add

$wsdl

\Zend\Soap\$wsdl

\Zend\Soap\Wsdl WSDL document

$port

\Zend\Soap\$port

object wsdl:portType

$binding

\Zend\Soap\$binding

object wsdl:binding

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Generate the WSDL for a service class.

_generateClass() : \Zend\Soap\Wsdl

Returns

Generate the WSDL for a set of functions.

_generateFunctions() : \Zend\Soap\Wsdl

Returns

Generate the WSDL for a set of reflection method instances.

_generateWsdl(array $reflectionMethods) : \Zend\Soap\Wsdl

Parameters

$reflectionMethods

array

Returns

 Properties

 

soap:operation style

$bindingStyle : array

 

Service class name

$class : string

 

Class Map of PHP to WSDL types.

$classMap : array

 

Discovery strategy for types and other method details.

$discoveryStrategy : \Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface

 

Service function names

$functions : array

 

soap:body operation style options

$operationBodyStyle : array

 

$reflection

$reflection : \Zend\Server\Reflection

 

$serviceName

$serviceName : string

 

$strategy

$strategy : bool

 

Url where the WSDL file will be available at.

$uri : \Zend\Soap\WSDL

 

Name of the class to handle the WSDL creation.

$wsdlClass : string