Class is intended to be used as local SOAP client which works
with a provided Server object.
Could be used for development or testing purposes.
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
Local client constructor
__construct(\Zend\Soap\Server $server, string $wsdl, array $options)
Parameters
$wsdl
string
$options
array
Exceptions
Actual "do request" 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
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
mixed
Returned 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
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
Get response XML
getLastResponse() : string
Inherited
inherited_from |
\Zend\Soap\Client::getLastResponse() |
Returns
string
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
Get SoapClient object
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
Retrieve typemap
getTypemap() : array
Inherited
inherited_from |
\Zend\Soap\Client::getTypemap() |
Returns
array
Return a list of SOAP types
getTypes() : array
Inherited
inherited_from |
\Zend\Soap\Client::getTypes() |
Exceptions
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
string
null
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
Set classmap
setClassmap(array $classmap) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setClassmap() |
Parameters
$classmap
array
Exceptions
Returns
\Zend\Soap\self
Set compression options
setCompressionOptions(int | null $compressionOptions) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setCompressionOptions() |
Parameters
$compressionOptions
intnull
Returns
\Zend\Soap\self
Set cookie
setCookie(string $cookieName, string $cookieValue) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setCookie() |
Parameters
$cookieName
string
$cookieValue
string
Returns
\Zend\Soap\self
Set encoding
setEncoding(string $encoding) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setEncoding() |
Parameters
$encoding
string
Exceptions
Returns
\Zend\Soap\self
Set message encoding method
setEncodingMethod(int $use) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setEncodingMethod() |
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
Inherited
inherited_from |
\Zend\Soap\Client::setHttpLogin() |
Parameters
$login
string
Returns
\Zend\Soap\self
Set HTTP password
setHttpPassword(string $password) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setHttpPassword() |
Parameters
$password
string
Returns
\Zend\Soap\self
Set HTTPS client certificate passphrase
setHttpsCertPassphrase(string $passphrase) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setHttpsCertPassphrase() |
Parameters
$passphrase
string
Returns
\Zend\Soap\self
Set HTTPS client certificate path
setHttpsCertificate(string $localCert) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setHttpsCertificate() |
Parameters
$localCert
string
local certificate path
Exceptions
Returns
\Zend\Soap\self
Set Location
setLocation(string $location) : \Zend\Soap\self
Inherited
URI in Web Service the target namespace
inherited_from |
\Zend\Soap\Client::setLocation() |
Parameters
$location
string
Exceptions
Returns
\Zend\Soap\self
Set Options
setOptions(array | \Traversable $options) : \Zend\Soap\self
Inherited
Allows setting options as an associative array of option => value pairs.
inherited_from |
\Zend\Soap\Client::setOptions() |
Parameters
$options
array\Traversable
Exceptions
Returns
\Zend\Soap\self
Set proxy host
setProxyHost(string $proxyHost) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setProxyHost() |
Parameters
$proxyHost
string
Returns
\Zend\Soap\self
Set proxy login
setProxyLogin(string $proxyLogin) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setProxyLogin() |
Parameters
$proxyLogin
string
Returns
\Zend\Soap\self
Set proxy password
setProxyPassword(string $proxyPassword) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setProxyPassword() |
Parameters
$proxyPassword
string
Returns
\Zend\Soap\self
Set proxy port
setProxyPort(int $proxyPort) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setProxyPort() |
Parameters
$proxyPort
int
Returns
\Zend\Soap\self
Set SoapClient object
setSoapClient(\SoapClient $soapClient) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setSoapClient() |
Parameters
Returns
\Zend\Soap\self
Set the SOAP Feature options.
setSoapFeatures(string | int $feature) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setSoapFeatures() |
Parameters
$feature
stringint
Returns
\Zend\Soap\self
Set SOAP version
setSoapVersion(int $version) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setSoapVersion() |
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
Inherited
inherited_from |
\Zend\Soap\Client::setStreamContext() |
Parameters
$context
resource
Exceptions
Returns
\Zend\Soap\self
Set request style
setStyle(int $style) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setStyle() |
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
Inherited
inherited_from |
\Zend\Soap\Client::setTypemap() |
Parameters
$typeMap
array
Exceptions
Returns
\Zend\Soap\self
Set URI
setUri(string $uri) : \Zend\Soap\self
Inherited
URI in Web Service the target namespace
inherited_from |
\Zend\Soap\Client::setUri() |
Parameters
$uri
string
Exceptions
Returns
\Zend\Soap\self
Set the string to use in User-Agent header
setUserAgent(string | null $userAgent) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setUserAgent() |
Parameters
$userAgent
stringnull
Returns
\Zend\Soap\self
Set wsdl
setWSDL(string $wsdl) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setWSDL() |
Parameters
$wsdl
string
Returns
\Zend\Soap\self
Set the SOAP WSDL Caching Options
setWSDLCache(string | int | bool | null $caching) : \Zend\Soap\self
Inherited
inherited_from |
\Zend\Soap\Client::setWSDLCache() |
Parameters
$caching
stringintboolnull
Returns
\Zend\Soap\self
Check for valid URN
validateUrn(string $urn) : bool
Inherited
inherited_from |
\Zend\Soap\Client::validateUrn() |
Parameters
$urn
string
Exceptions
Returns
bool
Initialize SOAP Client object
_initSoapClientObject()
Inherited
inherited_from |
\Zend\Soap\Client::_initSoapClientObject() |
Exceptions
Perform arguments pre-processing
_preProcessArguments(array $arguments) : array
Inherited
My be overridden in descendant classes
inherited_from |
\Zend\Soap\Client::_preProcessArguments() |
Parameters
$arguments
array
Returns
array
Perform result pre-processing
_preProcessResult(array $result) : array
Inherited
My be overridden in descendant classes
inherited_from |
\Zend\Soap\Client::_preProcessResult() |
Parameters
$result
array
Returns
array
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 |
$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 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 |
$typemap
$typemap : array
Inherited
inherited_from |
\Zend\Soap\Client::$$typemap |
$uri
$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 |