Soap/Client.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Soap  
Subpackage
Client  
Version
$Id$  

\Zend_Soap_Client

Package: Zend_Soap\Client
Zend_Soap_Client
Children
\Zend_Service_DeveloperGarden_Client_Soap
\Zend_Soap_Client_Local
\Zend_Soap_Client_DotNet
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected$_cache_wsdl = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedarray $_classmap = null
Array of SOAP type => PHP class pairings for handling return/incoming values
Default valuenullDetails
Type
array
>VPropertyprotected$_compression = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_connection_timeout = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedstring $_encoding = 'UTF-8'
Encoding
Default value'UTF-8'Details
Type
string
>VPropertyprotectedarray $_faultExceptions = array()
Registered fault exceptions
Default valuearray()Details
Type
array
>VPropertyprotected$_features = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedstring $_lastMethod = ''
Last invoked method
Default value''Details
Type
string
>VPropertyprotected$_local_cert = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_location = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_login = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_passphrase = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_password = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedarray $_permanentSoapInputHeaders = array()
Permanent SOAP request headers (shared between requests).
Array of SoapHeader objects
Default valuearray()Details
Type
array
>VPropertyprotected$_proxy_host = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_proxy_login = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_proxy_password = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_proxy_port = null
Default valuenullDetails
Type
n/a
>VPropertyprotected\SoapClient $_soapClient
SoapClient object
Details
Type
\SoapClient
>VPropertyprotectedarray $_soapInputHeaders = array()
SOAP request headers.
Array of SoapHeader objects
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_soapOutputHeaders = array()
Output SOAP headers.
Array of SoapHeader objects
Default valuearray()Details
Type
array
>VPropertyprotectedint $_soapVersion = SOAP_1_2
SOAP version to use; SOAP_1_2 by default, to allow processing of headers
Default valueSOAP_1_2Details
Type
int
>VPropertyprotected$_stream_context = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_style = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_uri = null
Set of other SoapClient options
Default valuenullDetails
Type
n/a
>VPropertyprotected$_use = null
Default valuenullDetails
Type
n/a
>VPropertyprotected$_user_agent = null
Default valuenullDetails
Type
n/a
>VPropertyprotectedstring $_wsdl = null
WSDL used to access server It also defines Zend_Soap_Client working mode (WSDL vs non-WSDL)
Default valuenullDetails
Type
string

Methods

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

Perform a SOAP call

Parameters
NameTypeDescription
$namestring
$argumentsarray
Returns
TypeDescription
mixed
methodpublic__construct(string $wsdl = null, array $options = null) : void

Constructor

Parameters
NameTypeDescription
$wsdlstring
$optionsarray
methodprotected_initSoapClientObject() : void

Initialize SOAP Client object

Throws
ExceptionDescription
\Zend_Soap_Client_Exception
methodprotected_preProcessArguments(array $arguments) : void

Perform arguments pre-processing

My be overridden in descendant classes
Parameters
NameTypeDescription
$argumentsarray
methodprotected_preProcessResult( $result) : void

Perform result pre-processing

My be overridden in descendant classes
Parameters
NameTypeDescription
$result
methodpublicaddSoapInputHeader(\SoapHeader $header, boolean $permanent = false) : \Zend_Soap_Client

Add SOAP input header

Parameters
NameTypeDescription
$header\SoapHeader
$permanentboolean
Returns
TypeDescription
\Zend_Soap_Client
methodpublicgetClassmap() : mixed

Retrieve classmap

Returns
TypeDescription
mixed
methodpublicgetCompressionOptions() : int

Get Compression options

Returns
TypeDescription
int
methodpublicgetEncoding() : string

Get encoding

Returns
TypeDescription
string
methodpublicgetEncodingMethod() : int

Get message encoding method

Returns
TypeDescription
int
methodpublicgetFunctions() : array

Return a list of available functions

Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Soap_Client_Exception
methodpublicgetHttpLogin() : string

Retrieve HTTP Login

Returns
TypeDescription
string
methodpublicgetHttpPassword() : string

Retrieve HTTP Password

Returns
TypeDescription
string
methodpublicgetHttpsCertPassphrase() : string

Get HTTPS client certificate passphrase

Returns
TypeDescription
string
methodpublicgetHttpsCertificate() : string

Get HTTPS client certificate path

Returns
TypeDescription
string
methodpublicgetLastMethod() : string

Retrieve last invoked method

Returns
TypeDescription
string
methodpublicgetLastRequest() : string

Retrieve request XML

Returns
TypeDescription
string
methodpublicgetLastRequestHeaders() : string

Retrieve request headers

Returns
TypeDescription
string
methodpublicgetLastResponse() : string

Get response XML

Returns
TypeDescription
string
methodpublicgetLastResponseHeaders() : string

Retrieve response headers (as string)

Returns
TypeDescription
string
methodpublicgetLastSoapOutputHeaderObjects() : array

Get last SOAP output headers

Returns
TypeDescription
array
methodpublicgetLocation() : string

Retrieve URI

Returns
TypeDescription
string
methodpublicgetOptions() : array

Return array of options suitable for using with SoapClient constructor

Returns
TypeDescription
array
methodpublicgetProxyHost() : string

Retrieve proxy host

Returns
TypeDescription
string
methodpublicgetProxyLogin() : string

Retrieve proxy login

Returns
TypeDescription
string
methodpublicgetProxyPassword() : string

Retrieve proxy password

Returns
TypeDescription
string
methodpublicgetProxyPort() : int

Retrieve proxy port

Returns
TypeDescription
int
methodpublicgetSoapClient() : \SoapClient

Returns
TypeDescription
\SoapClient
methodpublicgetSoapFeatures() : int

Return current SOAP Features options

Returns
TypeDescription
int
methodpublicgetSoapVersion() : int

Get SOAP version

Returns
TypeDescription
int
methodpublicgetStreamContext() : resource

Get Stream Context

Returns
TypeDescription
resource
methodpublicgetStyle() : int

Get request style

Returns
TypeDescription
int
methodpublicgetTypes() : array

Return a list of SOAP types

Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Soap_Client_Exception
methodpublicgetUri() : string

Retrieve URI

Returns
TypeDescription
string
methodpublicgetUserAgent() : string | null

Get current string to use in User-Agent header

Returns
TypeDescription
string | null
methodpublicgetWsdl() : string

Get wsdl

Returns
TypeDescription
string
methodpublicgetWsdlCache() : int

Get current SOAP Wsdl Caching option

Returns
TypeDescription
int
methodpublicresetSoapInputHeaders() : \Zend_Soap_Client

Reset SOAP input headers

Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetClassmap(array $classmap) : \Zend_Soap_Client

Set classmap

Parameters
NameTypeDescription
$classmaparray
Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionfor any invalid class in the class map
methodpublicsetCompressionOptions(int | null $compressionOptions) : \Zend_Soap_Client

Set compression options

Parameters
NameTypeDescription
$compressionOptionsint | null
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetCookie( $cookieName,  $cookieValue = null) : \Zend_Soap_Client

Parameters
NameTypeDescription
$cookieName
$cookieValue
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetEncoding(string $encoding) : \Zend_Soap_Client

Set encoding

Parameters
NameTypeDescription
$encodingstring
Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid encoding argument
methodpublicsetEncodingMethod(int $use) : \Zend_Soap_Client

Set message encoding method

Parameters
NameTypeDescription
$useint

One of the SOAP_ENCODED or SOAP_LITERAL constants

Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid message encoding method argument
methodpublicsetHttpLogin(string $login) : \Zend_Soap_Client

Set HTTP login

Parameters
NameTypeDescription
$loginstring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetHttpPassword(string $password) : \Zend_Soap_Client

Set HTTP password

Parameters
NameTypeDescription
$passwordstring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetHttpsCertPassphrase(string $passphrase) : \Zend_Soap_Client

Set HTTPS client certificate passphrase

Parameters
NameTypeDescription
$passphrasestring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetHttpsCertificate(string $localCert) : \Zend_Soap_Client

Set HTTPS client certificate path

Parameters
NameTypeDescription
$localCertstring

local certificate path

Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid local certificate path argument
methodpublicsetLocation(string $location) : \Zend_Soap_Client

Set Location

URI in Web Service the target namespace
Parameters
NameTypeDescription
$locationstring
Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid uri argument
methodpublicsetOptions(array | \Zend_Config $options) : \Zend_Soap_Client

Set Options

Allows setting options as an associative array of option => value pairs.
Parameters
NameTypeDescription
$optionsarray | \Zend_Config
Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_SoapClient_Exception
methodpublicsetProxyHost(string $proxyHost) : \Zend_Soap_Client

Set proxy host

Parameters
NameTypeDescription
$proxyHoststring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetProxyLogin(string $proxyLogin) : \Zend_Soap_Client

Set proxy login

Parameters
NameTypeDescription
$proxyLoginstring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetProxyPassword( $proxyPassword) : \Zend_Soap_Client

Set proxy password

Parameters
NameTypeDescription
$proxyPassword
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetProxyPort(int $proxyPort) : \Zend_Soap_Client

Set proxy port

Parameters
NameTypeDescription
$proxyPortint
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetSoapClient(\SoapClient $soapClient) : \Zend_Soap_Client

Parameters
NameTypeDescription
$soapClient\SoapClient
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetSoapFeatures(string | int $feature) : \Zend_Soap_Client

Set the SOAP Feature options.

Parameters
NameTypeDescription
$featurestring | int
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetSoapVersion(int $version) : \Zend_Soap_Client

Set SOAP version

Parameters
NameTypeDescription
$versionint

One of the SOAP_1_1 or SOAP_1_2 constants

Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid soap version argument
methodpublicsetStreamContext( $context) : \Zend_Soap_Client

Set Stream Context

Parameters
NameTypeDescription
$context
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetStyle(int $style) : \Zend_Soap_Client

Set request style

Parameters
NameTypeDescription
$styleint

One of the SOAP_RPC or SOAP_DOCUMENT constants

Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid style argument
methodpublicsetUri(string $uri) : \Zend_Soap_Client

Set URI

URI in Web Service the target namespace
Parameters
NameTypeDescription
$uristring
Returns
TypeDescription
\Zend_Soap_Client
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionwith invalid uri argument
methodpublicsetUserAgent(string | null $userAgent) : \Zend_Soap_Client

Set the string to use in User-Agent header

Parameters
NameTypeDescription
$userAgentstring | null
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetWsdl(string $wsdl) : \Zend_Soap_Client

Set wsdl

Parameters
NameTypeDescription
$wsdlstring
Returns
TypeDescription
\Zend_Soap_Client
methodpublicsetWsdlCache(string | int | boolean | null $caching) : \Zend_Soap_Client

Set the SOAP Wsdl Caching Options

Parameters
NameTypeDescription
$cachingstring | int | boolean | null
Returns
TypeDescription
\Zend_Soap_Client
methodpublicvalidateUrn(string $urn) : true

Check for valid URN

Parameters
NameTypeDescription
$urnstring
Returns
TypeDescription
true
Throws
ExceptionDescription
\Zend_Soap_Client_Exceptionon invalid URN
Documentation was generated by phpDocumentor 2.2.0 .