\Zend\Soap\Client

category Zend
package Zend_Soap
subpackage Client

 Methods

Perform a SOAP call

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

Parameters

$name

string

$arguments

array

Returns

mixed

Constructor

__construct(string $wsdl, array | \Traversable $options) 

Parameters

$wsdl

string

$options

array\Traversable

Exceptions

\Zend\Soap\Exception\ExtensionNotLoadedException

Add SOAP input header

addSoapInputHeader(\SoapHeader $header, bool $permanent) : \Zend\Soap\Client

Parameters

$header

\SoapHeader

$permanent

bool

Returns

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

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

Unified interface for calling custom remote methods.

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() : int

Returns

int

Get encoding

getEncoding() : string

Returns

string

Get message encoding method

getEncodingMethod() : int

Returns

int

Return a list of available functions

getFunctions() : array

Exceptions

\Zend\Soap\Exception\ExceptionInterface

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() : int

Returns

int

getSoapClient()

getSoapClient() : \SoapClient

Returns

Return current SOAP Features options

getSoapFeatures() : int

Returns

int

Get SOAP version

getSoapVersion() : int

Returns

int

Get Stream Context

getStreamContext() : resource

Returns

resource

Get request style

getStyle() : int

Returns

int

Return a list of SOAP types

getTypes() : array

Exceptions

\Zend\Soap\Exception\ExceptionInterface

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() : int

Returns

int

Reset SOAP input headers

resetSoapInputHeaders() : \Zend\Soap\Client

Set classmap

setClassmap(array $classmap) : \Zend\Soap\Client

Parameters

$classmap

array

Exceptions

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

Returns

Set compression options

setCompressionOptions(int | null $compressionOptions) : \Zend\Soap\Client

Parameters

$compressionOptions

intnull

Returns

setCookie()

setCookie(string $cookieName, string $cookieValue) : \Zend\Soap\Client

Parameters

$cookieName

string

$cookieValue

string

Returns

Set encoding

setEncoding(string $encoding) : \Zend\Soap\Client

Parameters

$encoding

string

Exceptions

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

Returns

Set message encoding method

setEncodingMethod(int $use) : \Zend\Soap\Client

Parameters

$use

int

One of the SOAP_ENCODED or SOAP_LITERAL constants

Exceptions

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

Returns

Set HTTP login

setHttpLogin(string $login) : \Zend\Soap\Client

Parameters

$login

string

Returns

Set HTTP password

setHttpPassword(string $password) : \Zend\Soap\Client

Parameters

$password

string

Returns

Set HTTPS client certificate passphrase

setHttpsCertPassphrase(string $passphrase) : \Zend\Soap\Client

Parameters

$passphrase

string

Returns

Set HTTPS client certificate path

setHttpsCertificate(string $localCert) : \Zend\Soap\Client

Parameters

$localCert

string

local certificate path

Exceptions

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

Returns

Set Location

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

URI in Web Service the target namespace

Parameters

$location

string

Exceptions

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

Returns

Set Options

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

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

Set proxy host

setProxyHost(string $proxyHost) : \Zend\Soap\Client

Parameters

$proxyHost

string

Returns

Set proxy login

setProxyLogin(string $proxyLogin) : \Zend\Soap\Client

Parameters

$proxyLogin

string

Returns

Set proxy password

setProxyPassword(string $proxyPassword) : \Zend\Soap\Client

Parameters

$proxyPassword

string

Returns

Set proxy port

setProxyPort(int $proxyPort) : \Zend\Soap\Client

Parameters

$proxyPort

int

Returns

setSoapClient()

setSoapClient(\SoapClient $soapClient) : \Zend\Soap\Client

Parameters

$soapClient

\SoapClient

Returns

Set the SOAP Feature options.

setSoapFeatures(string | int $feature) : \Zend\Soap\Client

Parameters

$feature

stringint

Returns

Set SOAP version

setSoapVersion(int $version) : \Zend\Soap\Client

Parameters

$version

int

One of the SOAP_1_1 or SOAP_1_2 constants

Exceptions

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

Returns

Set Stream Context

setStreamContext(resource $context) : \Zend\Soap\Client

Parameters

$context

resource

Returns

Set request style

setStyle(int $style) : \Zend\Soap\Client

Parameters

$style

int

One of the SOAP_RPC or SOAP_DOCUMENT constants

Exceptions

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

Returns

Set URI

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

URI in Web Service the target namespace

Parameters

$uri

string

Exceptions

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

Returns

Set the string to use in User-Agent header

setUserAgent(string | null $userAgent) : \Zend\Soap\Client

Parameters

$userAgent

stringnull

Returns

Set wsdl

setWSDL(string $wsdl) : \Zend\Soap\Client

Parameters

$wsdl

string

Returns

Set the SOAP WSDL Caching Options

setWSDLCache(string | int | bool | null $caching) : \Zend\Soap\Client

Parameters

$caching

stringintboolnull

Returns

Check for valid URN

validateUrn(string $urn) : bool

Parameters

$urn

string

Exceptions

\Zend\Soap\Exception\ExceptionInterface on invalid URN

Returns

bool

Initialize SOAP Client object

_initSoapClientObject() 

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 

 

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

$classmap : array

 

$compression

$compression 

 

$connectionTimeout

$connectionTimeout 

 

Encoding

$encoding : string

 

Registered fault exceptions

$faultExceptions : array

 

$features

$features 

 

Last invoked method

$lastMethod : string

 

$localCert

$localCert 

 

$location

$location 

 

$login

$login 

 

$passphrase

$passphrase 

 

$password

$password 

 

Permanent SOAP request headers (shared between requests).

$permanentSoapInputHeaders : array

Array of SoapHeader objects

 

$proxyHost

$proxyHost 

 

$proxyLogin

$proxyLogin 

 

$proxyPassword

$proxyPassword 

 

$proxyPort

$proxyPort 

 

SoapClient object

$soapClient : \SoapClient

 

SOAP request headers.

$soapInputHeaders : array

Array of SoapHeader objects

 

Output SOAP headers.

$soapOutputHeaders : array

Array of SoapHeader objects

 

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

$soapVersion : int

 

$streamContext

$streamContext 

 

$style

$style 

 

Set of other SoapClient options

$uri 

 

$use

$use 

 

$userAgent

$userAgent 

 

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

$wsdl : string