\Zend\Soap\Client

package Zend_Soap

 Methods

Perform a SOAP call

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

inherited_from \Zend\Soap\Client::__call()

Parameters

$name

string

$arguments

array

Returns

mixed

Constructor

__construct(string $wsdl, array $options) 

Parameters

$wsdl

string

$options

array

Exceptions

\Zend\Soap\Exception\ExtensionNotLoadedException

Add SOAP input header

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

inherited_from \Zend\Soap\Client::addSoapInputHeader()

Parameters

$header

\SoapHeader

$permanent

bool

Returns

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

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

Unified interface for calling custom remote methods.

inherited_from \Zend\Soap\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
Inherited

inherited_from \Zend\Soap\Client::getClassmap()

Returns

mixed

Get Compression options

getCompressionOptions() : int
Inherited

inherited_from \Zend\Soap\Client::getCompressionOptions()

Returns

int

Get encoding

getEncoding() : string
Inherited

inherited_from \Zend\Soap\Client::getEncoding()

Returns

string

Get message encoding method

getEncodingMethod() : int
Inherited

inherited_from \Zend\Soap\Client::getEncodingMethod()

Returns

int

Return a list of available functions

getFunctions() : array
Inherited

inherited_from \Zend\Soap\Client::getFunctions()

Exceptions

\Zend\Soap\Exception\ExceptionInterface

Returns

array

Retrieve HTTP Login

getHttpLogin() : string
Inherited

inherited_from \Zend\Soap\Client::getHttpLogin()

Returns

string

Retrieve HTTP Password

getHttpPassword() : string
Inherited

inherited_from \Zend\Soap\Client::getHttpPassword()

Returns

string

Get HTTPS client certificate passphrase

getHttpsCertPassphrase() : string
Inherited

inherited_from \Zend\Soap\Client::getHttpsCertPassphrase()

Returns

string

Get HTTPS client certificate path

getHttpsCertificate() : string
Inherited

inherited_from \Zend\Soap\Client::getHttpsCertificate()

Returns

string

Retrieve last invoked method

getLastMethod() : string
Inherited

inherited_from \Zend\Soap\Client::getLastMethod()

Returns

string

Retrieve request XML

getLastRequest() : string
Inherited

inherited_from \Zend\Soap\Client::getLastRequest()

Returns

string

Retrieve request headers

getLastRequestHeaders() : string
Inherited

inherited_from \Zend\Soap\Client::getLastRequestHeaders()

Returns

string

Get response XML

getLastResponse() : string
Inherited

inherited_from \Zend\Soap\Client::getLastResponse()

Returns

string

Retrieve response headers (as string)

getLastResponseHeaders() : string
Inherited

inherited_from \Zend\Soap\Client::getLastResponseHeaders()

Returns

string

Get last SOAP output headers

getLastSoapOutputHeaderObjects() : array
Inherited

inherited_from \Zend\Soap\Client::getLastSoapOutputHeaderObjects()

Returns

array

Retrieve URI

getLocation() : string
Inherited

inherited_from \Zend\Soap\Client::getLocation()

Returns

string

Return array of options suitable for using with SoapClient constructor

getOptions() : array
Inherited

inherited_from \Zend\Soap\Client::getOptions()

Returns

array

Retrieve proxy host

getProxyHost() : string
Inherited

inherited_from \Zend\Soap\Client::getProxyHost()

Returns

string

Retrieve proxy login

getProxyLogin() : string
Inherited

inherited_from \Zend\Soap\Client::getProxyLogin()

Returns

string

Retrieve proxy password

getProxyPassword() : string
Inherited

inherited_from \Zend\Soap\Client::getProxyPassword()

Returns

string

Retrieve proxy port

getProxyPort() : int
Inherited

inherited_from \Zend\Soap\Client::getProxyPort()

Returns

int

getSoapClient()

getSoapClient() : \SoapClient
Inherited

inherited_from \Zend\Soap\Client::getSoapClient()

Returns

Return current SOAP Features options

getSoapFeatures() : int
Inherited

inherited_from \Zend\Soap\Client::getSoapFeatures()

Returns

int

Get SOAP version

getSoapVersion() : int
Inherited

inherited_from \Zend\Soap\Client::getSoapVersion()

Returns

int

Get Stream Context

getStreamContext() : resource
Inherited

inherited_from \Zend\Soap\Client::getStreamContext()

Returns

resource

Get request style

getStyle() : int
Inherited

inherited_from \Zend\Soap\Client::getStyle()

Returns

int

Return a list of SOAP types

getTypes() : array
Inherited

inherited_from \Zend\Soap\Client::getTypes()

Exceptions

\Zend\Soap\Exception\ExceptionInterface

Returns

array

Retrieve URI

getUri() : string
Inherited

inherited_from \Zend\Soap\Client::getUri()

Returns

string

Get current string to use in User-Agent header

getUserAgent() : string | null
Inherited

inherited_from \Zend\Soap\Client::getUserAgent()

Returns

stringnull

Get wsdl

getWSDL() : string
Inherited

inherited_from \Zend\Soap\Client::getWSDL()

Returns

string

Get current SOAP WSDL Caching option

getWSDLCache() : int
Inherited

inherited_from \Zend\Soap\Client::getWSDLCache()

Returns

int

Reset SOAP input headers

resetSoapInputHeaders() : \Zend\Soap\Client
Inherited

inherited_from \Zend\Soap\Client::resetSoapInputHeaders()

Returns

Set classmap

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

inherited_from \Zend\Soap\Client::setClassmap()

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
Inherited

inherited_from \Zend\Soap\Client::setCompressionOptions()

Parameters

$compressionOptions

intnull

Returns

setCookie()

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

inherited_from \Zend\Soap\Client::setCookie()

Parameters

$cookieName

string

$cookieValue

string

Returns

Set encoding

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

inherited_from \Zend\Soap\Client::setEncoding()

Parameters

$encoding

string

Exceptions

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

Returns

Set message encoding method

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

inherited_from \Zend\Soap\Client::setEncodingMethod()

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
Inherited

inherited_from \Zend\Soap\Client::setHttpLogin()

Parameters

$login

string

Returns

Set HTTP password

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

inherited_from \Zend\Soap\Client::setHttpPassword()

Parameters

$password

string

Returns

Set HTTPS client certificate passphrase

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

inherited_from \Zend\Soap\Client::setHttpsCertPassphrase()

Parameters

$passphrase

string

Returns

Set HTTPS client certificate path

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

inherited_from \Zend\Soap\Client::setHttpsCertificate()

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
Inherited

URI in Web Service the target namespace

inherited_from \Zend\Soap\Client::setLocation()

Parameters

$location

string

Exceptions

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

Returns

Set Options

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

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

inherited_from \Zend\Soap\Client::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Soap\Exception\InvalidArgumentException

Returns

Set proxy host

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

inherited_from \Zend\Soap\Client::setProxyHost()

Parameters

$proxyHost

string

Returns

Set proxy login

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

inherited_from \Zend\Soap\Client::setProxyLogin()

Parameters

$proxyLogin

string

Returns

Set proxy password

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

inherited_from \Zend\Soap\Client::setProxyPassword()

Parameters

$proxyPassword

string

Returns

Set proxy port

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

inherited_from \Zend\Soap\Client::setProxyPort()

Parameters

$proxyPort

int

Returns

setSoapClient()

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

inherited_from \Zend\Soap\Client::setSoapClient()

Parameters

$soapClient

\SoapClient

Returns

Set the SOAP Feature options.

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

inherited_from \Zend\Soap\Client::setSoapFeatures()

Parameters

$feature

stringint

Returns

Set SOAP version

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

inherited_from \Zend\Soap\Client::setSoapVersion()

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
Inherited

inherited_from \Zend\Soap\Client::setStreamContext()

Parameters

$context

resource

Returns

Set request style

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

inherited_from \Zend\Soap\Client::setStyle()

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
Inherited

URI in Web Service the target namespace

inherited_from \Zend\Soap\Client::setUri()

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
Inherited

inherited_from \Zend\Soap\Client::setUserAgent()

Parameters

$userAgent

stringnull

Returns

Set wsdl

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

inherited_from \Zend\Soap\Client::setWSDL()

Parameters

$wsdl

string

Returns

Set the SOAP WSDL Caching Options

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

inherited_from \Zend\Soap\Client::setWSDLCache()

Parameters

$caching

stringintboolnull

Returns

Check for valid URN

validateUrn(string $urn) : bool
Inherited

inherited_from \Zend\Soap\Client::validateUrn()

Parameters

$urn

string

Exceptions

\Zend\Soap\Exception\ExceptionInterface on invalid URN

Returns

bool

Initialize SOAP Client object

_initSoapClientObject() 
Inherited

inherited_from \Zend\Soap\Client::_initSoapClientObject()

Exceptions

\Zend\Soap\Exception\ExceptionInterface

Perform arguments pre-processing

_preProcessArguments(array $arguments) : array

My be overridden in descendant classes

Parameters

$arguments

array

Exceptions

\Zend\Soap\Exception\RuntimeException

Returns

array

Perform result pre-processing

_preProcessResult(object $result) : mixed

My be overridden in descendant classes

Parameters

$result

object

Returns

mixed

 Properties

 

$cacheWsdl

$cacheWsdl 
Inherited

inherited_from \Zend\Soap\Client::$$cacheWsdl
 

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

$classmap : array
Inherited

inherited_from \Zend\Soap\Client::$$classmap
 

$compression

$compression 
Inherited

inherited_from \Zend\Soap\Client::$$compression
 

$connectionTimeout

$connectionTimeout 
Inherited

inherited_from \Zend\Soap\Client::$$connectionTimeout
 

Encoding

$encoding : string
Inherited

inherited_from \Zend\Soap\Client::$$encoding
 

Registered fault exceptions

$faultExceptions : array
Inherited

inherited_from \Zend\Soap\Client::$$faultExceptions
 

$features

$features 
Inherited

inherited_from \Zend\Soap\Client::$$features
 

Last invoked method

$lastMethod : string
Inherited

inherited_from \Zend\Soap\Client::$$lastMethod
 

$localCert

$localCert 
Inherited

inherited_from \Zend\Soap\Client::$$localCert
 

$location

$location 
Inherited

inherited_from \Zend\Soap\Client::$$location
 

$login

$login 
Inherited

inherited_from \Zend\Soap\Client::$$login
 

$passphrase

$passphrase 
Inherited

inherited_from \Zend\Soap\Client::$$passphrase
 

$password

$password 
Inherited

inherited_from \Zend\Soap\Client::$$password
 

Permanent SOAP request headers (shared between requests).

$permanentSoapInputHeaders : array
Inherited

Array of SoapHeader objects

inherited_from \Zend\Soap\Client::$$permanentSoapInputHeaders
 

$proxyHost

$proxyHost 
Inherited

inherited_from \Zend\Soap\Client::$$proxyHost
 

$proxyLogin

$proxyLogin 
Inherited

inherited_from \Zend\Soap\Client::$$proxyLogin
 

$proxyPassword

$proxyPassword 
Inherited

inherited_from \Zend\Soap\Client::$$proxyPassword
 

$proxyPort

$proxyPort 
Inherited

inherited_from \Zend\Soap\Client::$$proxyPort
 

SoapClient object

$soapClient : \SoapClient
Inherited

inherited_from \Zend\Soap\Client::$$soapClient
 

SOAP request headers.

$soapInputHeaders : array
Inherited

Array of SoapHeader objects

inherited_from \Zend\Soap\Client::$$soapInputHeaders
 

Output SOAP headers.

$soapOutputHeaders : array
Inherited

Array of SoapHeader objects

inherited_from \Zend\Soap\Client::$$soapOutputHeaders
 

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

$soapVersion : int
Inherited

inherited_from \Zend\Soap\Client::$$soapVersion
 

$streamContext

$streamContext 
Inherited

inherited_from \Zend\Soap\Client::$$streamContext
 

$style

$style 
Inherited

inherited_from \Zend\Soap\Client::$$style
 

Set of other SoapClient options

$uri 
Inherited

inherited_from \Zend\Soap\Client::$$uri
 

$use

$use 
Inherited

inherited_from \Zend\Soap\Client::$$use
 

$userAgent

$userAgent 
Inherited

inherited_from \Zend\Soap\Client::$$userAgent
 

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

$wsdl : string
Inherited

inherited_from \Zend\Soap\Client::$$wsdl