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\self

Parameters

$function

string

Function Name

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\self

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

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\self

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

Parameters

$bindingStyle

array

Returns

\Zend\Soap\self

Set the Class the SOAP server will use

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

Parameters

$class

string

Class Name

Returns

\Zend\Soap\self

Set the class map of php to wsdl mappings.

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

Parameters

$classMap

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\self

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

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

Parameters

Returns

\Zend\Soap\self

Set the discovery strategy for method type and other information.

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

Parameters

Returns

\Zend\Soap\self

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

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

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

\Zend\Soap\self

Set service name

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

Parameters

$serviceName

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\self

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

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

Parameters

$uri

\Zend\Uri\Uristring

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\self

Set the name of the WSDL handling class.

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

Parameters

$wsdlClass

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\self

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) 

Parameters

$function

\Zend\Soap\$function

Reflection\AbstractFunction function to add

$wsdl

\Zend\Soap\$wsdl

Wsdl WSDL document

$port

\Zend\Soap\$port

\DOMElement wsdl:portType

$binding

\Zend\Soap\$binding

\DOMElement 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