package Default

 Methods

Perform a SOAP call

__call(string $name, array $arguments) : mixed

Parameters

$name

string

$arguments

array

Returns

mixed

__construct()

__construct(string $wsdl = null, array|\Traversable $options = null

Parameters

$wsdl

string

$options

array\Traversable

Exceptions

\Zend\Soap\Exception\ExtensionNotLoadedException

Do request proxy method.

_doRequest(\Zend\Soap\Client\Common $client, string $request, string $location, string $action, integer $version, integer $oneWay = null) : mixed

May be overridden in subclasses

Parameters

$client

\Zend\Soap\Client\Common

$request

string

$location

string

$action

string

$version

integer

$oneWay

integer

Returns

mixed

Add SOAP input header

addSoapInputHeader(\SoapHeader $header, boolean $permanent = false) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$header

\SoapHeader

$permanent

boolean

Returns

\Zend\Soap\Client

Send an RPC request to the service for a specific method.

call(string $method, array $params = array()) : mixed

Unified interface for calling custom remote methods.

inherited_from \Zend\Server\Client::call()

Parameters

$method

string

Name of the method we want to call.

$params

array

List of parameters for the method.

Returns

mixedReturned results.

Retrieve classmap

getClassmap() : mixed

Returns

mixed

Get Compression options

getCompressionOptions() : integer

Returns

integer

Get encoding

getEncoding() : string

Returns

string

Get message encoding method

getEncodingMethod() : integer

Returns

integer

Return a list of available functions

getFunctions() : array

Exceptions

\Zend\Soap\Exception\UnexpectedValueException

Returns

array

Retrieve HTTP Login

getHttpLogin() : string

Returns

string

Retrieve HTTP Password

getHttpPassword() : string

Returns

string

Get HTTPS client certificate passphrase

getHttpsCertPassphrase() : string

Returns

string

Get HTTPS client certificate path

getHttpsCertificate() : string

Returns

string

Retrieve last invoked method

getLastMethod() : string

Returns

string

Retrieve request XML

getLastRequest() : string

Returns

string

Retrieve request headers

getLastRequestHeaders() : string

Returns

string

Get response XML

getLastResponse() : string

Returns

string

Retrieve response headers (as string)

getLastResponseHeaders() : string

Returns

string

Get last SOAP output headers

getLastSoapOutputHeaderObjects() : array

Returns

array

Retrieve URI

getLocation() : string

Returns

string

Return array of options suitable for using with SoapClient constructor

getOptions() : array

Returns

array

Retrieve proxy host

getProxyHost() : string

Returns

string

Retrieve proxy login

getProxyLogin() : string

Returns

string

Retrieve proxy password

getProxyPassword() : string

Returns

string

Retrieve proxy port

getProxyPort() : integer

Returns

integer

Get SoapClient object

getSoapClient() : \SoapClient

Returns

\SoapClient

Return current SOAP Features options

getSoapFeatures() : integer

Returns

integer

Get SOAP version

getSoapVersion() : integer

Returns

integer

Get Stream Context

getStreamContext() : resource

Returns

resource

Get request style

getStyle() : integer

Returns

integer

Retrieve typemap

getTypemap() : array

Returns

array

Return a list of SOAP types

getTypes() : array

Exceptions

\Zend\Soap\Exception\UnexpectedValueException

Returns

array

Retrieve URI

getUri() : string

Returns

string

Get current string to use in User-Agent header

getUserAgent() : string | null

Returns

stringnull

Get wsdl

getWSDL() : string

Returns

string

Get current SOAP WSDL Caching option

getWSDLCache() : integer

Returns

integer

Reset SOAP input headers

resetSoapInputHeaders() : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Returns

\Zend\Soap\Client

Set classmap

setClassmap(array $classmap) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$classmap

array

Exceptions

\Zend\Soap\Exception\InvalidArgumentException for any invalid class in the class map

Returns

\Zend\Soap\Client

Set compression options

setCompressionOptions(integer|null $compressionOptions) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$compressionOptions

integernull

Returns

\Zend\Soap\Client

Set cookie

setCookie(string $cookieName, string $cookieValue = null) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$cookieName

string

$cookieValue

string

Returns

\Zend\Soap\Client

Set encoding

setEncoding(string $encoding) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$encoding

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid encoding argument

Returns

\Zend\Soap\Client

Set message encoding method

setEncodingMethod(integer $use) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$use

integer

One of the SOAP_ENCODED or SOAP_LITERAL constants

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid message encoding method argument

Returns

\Zend\Soap\Client

Set HTTP login

setHttpLogin(string $login) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$login

string

Returns

\Zend\Soap\Client

Set HTTP password

setHttpPassword(string $password) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$password

string

Returns

\Zend\Soap\Client

Set HTTPS client certificate passphrase

setHttpsCertPassphrase(string $passphrase) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$passphrase

string

Returns

\Zend\Soap\Client

Set HTTPS client certificate path

setHttpsCertificate(string $localCert) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$localCert

string

local certificate path

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid local certificate path argument

Returns

\Zend\Soap\Client

Set Location

setLocation(string $location) : \Zend\Soap\Client

URI in Web Service the target namespace

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

Parameters

$location

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid uri argument

Returns

\Zend\Soap\Client

Set Options

setOptions(array|\Traversable $options) : \Zend\Soap\Client

Allows setting options as an associative array of option => value pairs.

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\Client

Set proxy host

setProxyHost(string $proxyHost) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$proxyHost

string

Returns

\Zend\Soap\Client

Set proxy login

setProxyLogin(string $proxyLogin) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$proxyLogin

string

Returns

\Zend\Soap\Client

Set proxy password

setProxyPassword(string $proxyPassword) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$proxyPassword

string

Returns

\Zend\Soap\Client

Set proxy port

setProxyPort(integer $proxyPort) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$proxyPort

integer

Returns

\Zend\Soap\Client

Set SoapClient object

setSoapClient(\SoapClient $soapClient) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$soapClient

\SoapClient

Returns

\Zend\Soap\Client

Set the SOAP Feature options.

setSoapFeatures(string|integer $feature) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$feature

stringinteger

Returns

\Zend\Soap\Client

Set SOAP version

setSoapVersion(integer $version) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$version

integer

One of the SOAP_1_1 or SOAP_1_2 constants

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid soap version argument

Returns

\Zend\Soap\Client

Set Stream Context

setStreamContext(resource $context) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$context

resource

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\Client

Set request style

setStyle(integer $style) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$style

integer

One of the SOAP_RPC or SOAP_DOCUMENT constants

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid style argument

Returns

\Zend\Soap\Client

Set typemap with xml to php type mappings with appropriate validation.

setTypemap(array $typeMap) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$typeMap

array

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

\Zend\Soap\Client

Set URI

setUri(string $uri) : \Zend\Soap\Client

URI in Web Service the target namespace

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

Parameters

$uri

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException with invalid uri argument

Returns

\Zend\Soap\Client

Set the string to use in User-Agent header

setUserAgent(string|null $userAgent) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$userAgent

stringnull

Returns

\Zend\Soap\Client

Set wsdl

setWSDL(string $wsdl) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$wsdl

string

Returns

\Zend\Soap\Client

Set the SOAP WSDL Caching Options

setWSDLCache(string|integer|boolean|null $caching) : \Zend\Soap\Client
fluent This method is part of a fluent interface and will return the same instance

Parameters

$caching

stringintegerbooleannull

Returns

\Zend\Soap\Client

Check for valid URN

validateUrn(string $urn) : boolean

Parameters

$urn

string

Exceptions

\Zend\Soap\Exception\InvalidArgumentException on invalid URN

Returns

boolean

Initialize SOAP Client object

_initSoapClientObject() 

Exceptions

\Zend\Soap\Exception\ExceptionInterface

Perform arguments pre-processing

_preProcessArguments(array $arguments) : array

My be overridden in descendant classes

Parameters

$arguments

array

Returns

array

Perform result pre-processing

_preProcessResult(array $result) : array

My be overridden in descendant classes

Parameters

$result

array

Returns

array

 Properties

 

$cacheWsdl

$cacheWsdl 

Default

null
 

Array of SOAP type => PHP class pairings for handling return/incoming values

$classmap : array

Default

null
 

$compression

$compression 

Default

null
 

$connectionTimeout

$connectionTimeout 

Default

null
 

Encoding

$encoding : string

Default

'UTF-8'
 

Registered fault exceptions

$faultExceptions : array

Default

array()
 

$features

$features 

Default

null
 

Last invoked method

$lastMethod : string

Default

''
 

$localCert

$localCert 

Default

null
 

$location

$location 

Default

null
   

$passphrase

$passphrase 

Default

null
 

$password

$password 

Default

null
 

Permanent SOAP request headers (shared between requests).

$permanentSoapInputHeaders : array

Default

array()
 

$proxyHost

$proxyHost 

Default

null
 

$proxyLogin

$proxyLogin 

Default

null
 

$proxyPassword

$proxyPassword 

Default

null
 

$proxyPort

$proxyPort 

Default

null
 

SoapClient object

$soapClient : \SoapClient

Default

 

Array of SoapHeader objects

$soapInputHeaders : array<mixed,\SoapHeader>

Default

array()
 

Array of SoapHeader objects

$soapOutputHeaders : array

Default

array()
 

SOAP version to use; SOAP_1_2 by default, to allow processing of headers

$soapVersion : integer

Default

SOAP_1_2
 

$streamContext

$streamContext 

Default

null
 

$style

$style 

Default

null
 

$typemap

$typemap : array

Default

null
 

$uri

$uri 

Default

null
 

$use

$use 

Default

null
 

$userAgent

$userAgent 

Default

null
 

WSDL used to access server It also defines Client working mode (WSDL vs non-WSDL)

$wsdl : string

Default

null