package Default

 Methods

Constructor

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

Parameters

$strategy

null\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface

$endpointUri

nullstring\Zend\Uri\Uri

$wsdlClass

nullstring

$classMap

nullarray

Add a Single or Multiple Functions to the WSDL

addFunction(string $function) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$function

string

Function Name

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

Proxy to WSDL dump function

dump(string $filename) : boolean

Parameters

$filename

string

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

boolean

Generate the WSDL file from the configured input.

generate() : \Zend\Soap\Wsdl

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

\Zend\Soap\Wsdl

Get the class map of php to wsdl mappings.

getClassMap() : array

Returns

array

Get the discovery strategy.

getDiscoveryStrategy() : \Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface

Returns

\Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface

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

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

\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 = array()) : \Zend\Soap\AutoDiscover

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

fluent This method is part of a fluent interface and will return the same instance

Parameters

$bindingStyle

array

Returns

\Zend\Soap\AutoDiscover

Set the Class the SOAP server will use

setClass(string $class) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$class

string

Class Name

Returns

\Zend\Soap\AutoDiscover

Set the class map of php to wsdl mappings.

setClassMap(array $classMap) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$classMap

array

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

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

setComplexTypeStrategy(\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface $strategy) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$strategy

\Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface

Returns

\Zend\Soap\AutoDiscover

Set the discovery strategy for method type and other information.

setDiscoveryStrategy(\Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface $discoveryStrategy) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$discoveryStrategy

\Zend\Soap\AutoDiscover\DiscoveryStrategy\DiscoveryStrategyInterface

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

fluent This method is part of a fluent interface and will return the same instance

Parameters

$operationStyle

array

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

Set service name

setServiceName(string $serviceName) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$serviceName

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

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

setUri(\Zend\Uri\Uri|string $uri) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$uri

\Zend\Uri\Uristring

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

Set the name of the WSDL handling class.

setWsdlClass(string $wsdlClass) : \Zend\Soap\AutoDiscover
fluent This method is part of a fluent interface and will return the same instance

Parameters

$wsdlClass

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\AutoDiscover

Proxy to WSDL toXml() function

toXml() : string

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

string

Add a function to the WSDL document.

_addFunctionToWsdl($function, $wsdl, $port, $binding) 

Parameters

$function

Reflection\AbstractFunction function to add

$wsdl

Wsdl WSDL document

$port

\DOMElement wsdl:portType

$binding

\DOMElement wsdl:binding

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Generate the WSDL for a service class.

_generateClass() : \Zend\Soap\Wsdl

Returns

\Zend\Soap\Wsdl

Generate the WSDL for a set of functions.

_generateFunctions() : \Zend\Soap\Wsdl

Returns

\Zend\Soap\Wsdl

Generate the WSDL for a set of reflection method instances.

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

Parameters

$reflectionMethods

array

Returns

\Zend\Soap\Wsdl

 Properties

 

soap:operation style

$bindingStyle : array

Default

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

Service class name

$class : string

Default

 

Class Map of PHP to WSDL types.

$classMap : array

Default

array()
 

Discovery strategy for types and other method details.

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

Default

 

Service function names

$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
 

$serviceName

$serviceName : string

Default

 

$strategy

$strategy : boolean

Default

 

Url where the WSDL file will be available at.

$uri : \Zend\Soap\WSDL

Default

 

Name of the class to handle the WSDL creation.

$wsdlClass : string

Default

'Zend\Soap\Wsdl'