Methods
Perform a SOAP call
__call(string $name, array $arguments) : mixed
Parameters
$name
string
$arguments
array
Returns
mixed
__construct()
__construct(string $wsdl, array | \Traversable $options)
Parameters
$wsdl
string
$options
array\Traversable
Exceptions
Do request proxy method.
_doRequest(\Zend\Soap\Client\Common $client, string $request, string $location, string $action, int $version, int $oneWay) : mixed
May be overridden in subclasses
Parameters
$request
string
$location
string
$action
string
$version
int
$oneWay
int
Returns
mixed
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
mixed
Returned results.
Retrieve classmap
getClassmap() : mixed
Get Compression options
getCompressionOptions() : int
Get encoding
getEncoding() : string
Get message encoding method
getEncodingMethod() : int
Return a list of available functions
getFunctions() : array
Retrieve HTTP Login
getHttpLogin() : string
Retrieve HTTP Password
getHttpPassword() : string
Get HTTPS client certificate passphrase
getHttpsCertPassphrase() : string
Get HTTPS client certificate path
getHttpsCertificate() : string
Retrieve last invoked method
getLastMethod() : string
Retrieve request XML
getLastRequest() : string
Get response XML
getLastResponse() : string
Retrieve URI
getLocation() : string
Return array of options suitable for using with SoapClient constructor
getOptions() : array
Retrieve proxy host
getProxyHost() : string
Retrieve proxy login
getProxyLogin() : string
Retrieve proxy password
getProxyPassword() : string
Retrieve proxy port
getProxyPort() : int
Return current SOAP Features options
getSoapFeatures() : int
Get SOAP version
getSoapVersion() : int
Get Stream Context
getStreamContext() : resource
Get request style
getStyle() : int
Retrieve typemap
getTypemap() : array
Return a list of SOAP types
getTypes() : array
Retrieve URI
getUri() : string
Get current string to use in User-Agent header
getUserAgent() : string | null
Get wsdl
getWSDL() : string
Get current SOAP WSDL Caching option
getWSDLCache() : int
Set classmap
setClassmap(array $classmap) : \Zend\Soap\self
Parameters
$classmap
array
Exceptions
Returns
\Zend\Soap\self
Set compression options
setCompressionOptions(int | null $compressionOptions) : \Zend\Soap\self
Parameters
$compressionOptions
intnull
Returns
\Zend\Soap\self
Set cookie
setCookie(string $cookieName, string $cookieValue) : \Zend\Soap\self
Parameters
$cookieName
string
$cookieValue
string
Returns
\Zend\Soap\self
Set encoding
setEncoding(string $encoding) : \Zend\Soap\self
Parameters
$encoding
string
Exceptions
Returns
\Zend\Soap\self
Set message encoding method
setEncodingMethod(int $use) : \Zend\Soap\self
Parameters
$use
int
One of the SOAP_ENCODED or SOAP_LITERAL constants
Exceptions
Returns
\Zend\Soap\self
Set HTTP login
setHttpLogin(string $login) : \Zend\Soap\self
Parameters
$login
string
Returns
\Zend\Soap\self
Set HTTP password
setHttpPassword(string $password) : \Zend\Soap\self
Parameters
$password
string
Returns
\Zend\Soap\self
Set HTTPS client certificate passphrase
setHttpsCertPassphrase(string $passphrase) : \Zend\Soap\self
Parameters
$passphrase
string
Returns
\Zend\Soap\self
Set HTTPS client certificate path
setHttpsCertificate(string $localCert) : \Zend\Soap\self
Parameters
$localCert
string
local certificate path
Exceptions
Returns
\Zend\Soap\self
Set Location
setLocation(string $location) : \Zend\Soap\self
URI in Web Service the target namespace
Parameters
$location
string
Exceptions
Returns
\Zend\Soap\self
Set Options
setOptions(array | \Traversable $options) : \Zend\Soap\self
Allows setting options as an associative array of option => value pairs.
Parameters
$options
array\Traversable
Exceptions
Returns
\Zend\Soap\self
Set proxy host
setProxyHost(string $proxyHost) : \Zend\Soap\self
Parameters
$proxyHost
string
Returns
\Zend\Soap\self
Set proxy login
setProxyLogin(string $proxyLogin) : \Zend\Soap\self
Parameters
$proxyLogin
string
Returns
\Zend\Soap\self
Set proxy password
setProxyPassword(string $proxyPassword) : \Zend\Soap\self
Parameters
$proxyPassword
string
Returns
\Zend\Soap\self
Set proxy port
setProxyPort(int $proxyPort) : \Zend\Soap\self
Parameters
$proxyPort
int
Returns
\Zend\Soap\self
Set SoapClient object
setSoapClient(\SoapClient $soapClient) : \Zend\Soap\self
Parameters
Returns
\Zend\Soap\self
Set the SOAP Feature options.
setSoapFeatures(string | int $feature) : \Zend\Soap\self
Parameters
$feature
stringint
Returns
\Zend\Soap\self
Set SOAP version
setSoapVersion(int $version) : \Zend\Soap\self
Parameters
$version
int
One of the SOAP_1_1 or SOAP_1_2 constants
Exceptions
Returns
\Zend\Soap\self
Set Stream Context
setStreamContext(resource $context) : \Zend\Soap\self
Parameters
$context
resource
Exceptions
Returns
\Zend\Soap\self
Set request style
setStyle(int $style) : \Zend\Soap\self
Parameters
$style
int
One of the SOAP_RPC or SOAP_DOCUMENT constants
Exceptions
Returns
\Zend\Soap\self
Set typemap with xml to php type mappings with appropriate validation.
setTypemap(array $typeMap) : \Zend\Soap\self
Parameters
$typeMap
array
Exceptions
Returns
\Zend\Soap\self
Set URI
setUri(string $uri) : \Zend\Soap\self
URI in Web Service the target namespace
Parameters
$uri
string
Exceptions
Returns
\Zend\Soap\self
Set the string to use in User-Agent header
setUserAgent(string | null $userAgent) : \Zend\Soap\self
Parameters
$userAgent
stringnull
Returns
\Zend\Soap\self
Set wsdl
setWSDL(string $wsdl) : \Zend\Soap\self
Parameters
$wsdl
string
Returns
\Zend\Soap\self
Set the SOAP WSDL Caching Options
setWSDLCache(string | int | bool | null $caching) : \Zend\Soap\self
Parameters
$caching
stringintboolnull
Returns
\Zend\Soap\self
Check for valid URN
validateUrn(string $urn) : bool
Parameters
$urn
string
Exceptions
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
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
Last invoked method
$lastMethod : string
$proxyPassword
$proxyPassword
SOAP version to use; SOAP_1_2 by default, to allow processing of headers
$soapVersion : int
$streamContext
$streamContext
$typemap
$typemap : array
WSDL used to access server
It also defines Client working mode (WSDL vs non-WSDL)
$wsdl : string