API Documentation

Soap/Client.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Soap
subpackage
Client
version
$Id: Client.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Soap_Client

Description

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 license@zend.com so we can send you a copy immediately.

Zend_Soap_Client

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Soap
subpackage
Client
Properties
$_encoding
$_classmap
$_faultExceptions
$_soapVersion
$_uri
$_location
$_style
$_use
$_login
$_password
$_proxy_host
$_proxy_port
$_proxy_login
$_proxy_password
$_local_cert
$_passphrase
$_compression
$_connection_timeout
$_stream_context
$_features
$_cache_wsdl
$_user_agent
$_wsdl
$_soapClient
$_lastMethod
$_soapInputHeaders
$_permanentSoapInputHeaders
$_soapOutputHeaders
Methods
__construct
setWsdl
getWsdl
setOptions
getOptions
setSoapVersion
getSoapVersion
setClassmap
getClassmap
setEncoding
getEncoding
validateUrn
setUri
getUri
setLocation
getLocation
setStyle
getStyle
setEncodingMethod
getEncodingMethod
setHttpLogin
getHttpLogin
setHttpPassword
getHttpPassword
setProxyHost
getProxyHost
setProxyPort
getProxyPort
setProxyLogin
getProxyLogin
setProxyPassword
setHttpsCertificate
getHttpsCertificate
setHttpsCertPassphrase
getHttpsCertPassphrase
setCompressionOptions
getCompressionOptions
getProxyPassword
setStreamContext
getStreamContext
setSoapFeatures
getSoapFeatures
setWsdlCache
getWsdlCache
setUserAgent
getUserAgent
getLastRequest
getLastResponse
getLastRequestHeaders
getLastResponseHeaders
getLastMethod
_doRequest
_initSoapClientObject
_preProcessArguments
_preProcessResult
addSoapInputHeader
resetSoapInputHeaders
getLastSoapOutputHeaderObjects
__call
getFunctions
getTypes
setSoapClient
getSoapClient
setCookie

Description

Zend_Soap_Client

Properties

$_cache_wsdl

 $_cache_wsdl = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_classmap

array $_classmap = 'null'

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

Details

$_classmap
array
visibility
protected
default
null
final
false
static
false

$_compression

 $_compression = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_connection_timeout

 $_connection_timeout = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_encoding

string $_encoding = 'UTF-8'

Encoding

Details

$_encoding
string
visibility
protected
default
UTF-8
final
false
static
false

$_faultExceptions

array $_faultExceptions = 'array'

Registered fault exceptions

Details

$_faultExceptions
array
visibility
protected
default
array
final
false
static
false

$_features

 $_features = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_lastMethod

string $_lastMethod = ''

Last invoked method

Details

$_lastMethod
string
visibility
protected
default
final
false
static
false

$_local_cert

 $_local_cert = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_location

 $_location = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_login

 $_login = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_passphrase

 $_passphrase = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_password

 $_password = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_permanentSoapInputHeaders

array $_permanentSoapInputHeaders = 'array'

Permanent SOAP request headers (shared between requests).

Array of SoapHeader objects

Details

$_permanentSoapInputHeaders
array
visibility
protected
default
array
final
false
static
false

$_proxy_host

 $_proxy_host = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_proxy_login

 $_proxy_login = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_proxy_password

 $_proxy_password = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_proxy_port

 $_proxy_port = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_soapClient

SoapClient $_soapClient = ''

SoapClient object

Details

$_soapClient
SoapClient
visibility
protected
default
final
false
static
false

$_soapInputHeaders

array $_soapInputHeaders = 'array'

SOAP request headers.

Array of SoapHeader objects

Details

$_soapInputHeaders
array
visibility
protected
default
array
final
false
static
false

$_soapOutputHeaders

array $_soapOutputHeaders = 'array'

Output SOAP headers.

Array of SoapHeader objects

Details

$_soapOutputHeaders
array
visibility
protected
default
array
final
false
static
false

$_soapVersion

int $_soapVersion = 'SOAP_1_2'

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

Details

$_soapVersion
int
visibility
protected
default
SOAP_1_2
final
false
static
false

$_stream_context

 $_stream_context = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_style

 $_style = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_uri

 $_uri = 'null'

Set of other SoapClient options

Details

visibility
protected
default
null
final
false
static
false

$_use

 $_use = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_user_agent

 $_user_agent = 'null'

Details

visibility
protected
default
null
final
false
static
false

$_wsdl

string $_wsdl = 'null'

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

Details

$_wsdl
string
visibility
protected
default
null
final
false
static
false

Methods

__call

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

Perform a SOAP call

Arguments
$name
string
$arguments
array
Output
mixed
Details
visibility
public
final
false
static
false

__construct

__construct( string $wsdl = null, array $options = null ) :

Constructor

Arguments
$wsdl
string
$options
array
Details
visibility
public
final
false
static
false

_doRequest

_doRequest( Zend_Soap_Client_Common $client, string $request, string $location, string $action, int $version, int $one_way = null ) : mixed

Do request proxy method.

May be overridden in subclasses

Arguments
$client
Zend_Soap_Client_Common
$request
string
$location
string
$action
string
$version
int
$one_way
int
Output
mixed
Details
visibility
public
final
false
static
false
internal

_initSoapClientObject

_initSoapClientObject( ) :

Initialize SOAP Client object

Details
visibility
protected
final
false
static
false
throws

_preProcessArguments

_preProcessArguments( array $arguments ) :

Perform arguments pre-processing

My be overridden in descendant classes

Arguments
$arguments
array
Details
visibility
protected
final
false
static
false

_preProcessResult

_preProcessResult(  $result ) :

Perform result pre-processing

My be overridden in descendant classes

Arguments
$result
Details
visibility
protected
final
false
static
false

addSoapInputHeader

addSoapInputHeader( SoapHeader $header, boolean $permanent = false ) : Zend_Soap_Client

Add SOAP input header

Arguments
$header
SoapHeader
$permanent
boolean
Details
visibility
public
final
false
static
false

getClassmap

getClassmap( ) : mixed

Retrieve classmap

Output
mixed
Details
visibility
public
final
false
static
false

getCompressionOptions

getCompressionOptions( ) : int

Get Compression options

Output
int
Details
visibility
public
final
false
static
false

getEncoding

getEncoding( ) : string

Get encoding

Output
string
Details
visibility
public
final
false
static
false

getEncodingMethod

getEncodingMethod( ) : int

Get message encoding method

Output
int
Details
visibility
public
final
false
static
false

getFunctions

getFunctions( ) : array

Return a list of available functions

Output
array
Details
visibility
public
final
false
static
false
throws

getHttpLogin

getHttpLogin( ) : string

Retrieve HTTP Login

Output
string
Details
visibility
public
final
false
static
false

getHttpPassword

getHttpPassword( ) : string

Retrieve HTTP Password

Output
string
Details
visibility
public
final
false
static
false

getHttpsCertPassphrase

getHttpsCertPassphrase( ) : string

Get HTTPS client certificate passphrase

Output
string
Details
visibility
public
final
false
static
false

getHttpsCertificate

getHttpsCertificate( ) : string

Get HTTPS client certificate path

Output
string
Details
visibility
public
final
false
static
false

getLastMethod

getLastMethod( ) : string

Retrieve last invoked method

Output
string
Details
visibility
public
final
false
static
false

getLastRequest

getLastRequest( ) : string

Retrieve request XML

Output
string
Details
visibility
public
final
false
static
false

getLastRequestHeaders

getLastRequestHeaders( ) : string

Retrieve request headers

Output
string
Details
visibility
public
final
false
static
false

getLastResponse

getLastResponse( ) : string

Get response XML

Output
string
Details
visibility
public
final
false
static
false

getLastResponseHeaders

getLastResponseHeaders( ) : string

Retrieve response headers (as string)

Output
string
Details
visibility
public
final
false
static
false

getLastSoapOutputHeaderObjects

getLastSoapOutputHeaderObjects( ) : array

Get last SOAP output headers

Output
array
Details
visibility
public
final
false
static
false

getLocation

getLocation( ) : string

Retrieve URI

Output
string
Details
visibility
public
final
false
static
false

getOptions

getOptions( ) : array

Return array of options suitable for using with SoapClient constructor

Output
array
Details
visibility
public
final
false
static
false

getProxyHost

getProxyHost( ) : string

Retrieve proxy host

Output
string
Details
visibility
public
final
false
static
false

getProxyLogin

getProxyLogin( ) : string

Retrieve proxy login

Output
string
Details
visibility
public
final
false
static
false

getProxyPassword

getProxyPassword( ) : string

Retrieve proxy password

Output
string
Details
visibility
public
final
false
static
false

getProxyPort

getProxyPort( ) : int

Retrieve proxy port

Output
int
Details
visibility
public
final
false
static
false

getSoapClient

getSoapClient( ) : SoapClient

Output
SoapClient
Details
visibility
public
final
false
static
false

getSoapFeatures

getSoapFeatures( ) : int

Return current SOAP Features options

Output
int
Details
visibility
public
final
false
static
false

getSoapVersion

getSoapVersion( ) : int

Get SOAP version

Output
int
Details
visibility
public
final
false
static
false

getStreamContext

getStreamContext( ) : resource

Get Stream Context

Output
resource
Details
visibility
public
final
false
static
false

getStyle

getStyle( ) : int

Get request style

Output
int
Details
visibility
public
final
false
static
false

getTypes

getTypes( ) : array

Return a list of SOAP types

Output
array
Details
visibility
public
final
false
static
false
throws

getUri

getUri( ) : string

Retrieve URI

Output
string
Details
visibility
public
final
false
static
false

getUserAgent

getUserAgent( ) : string|null

Get current string to use in User-Agent header

Output
string|null
Details
visibility
public
final
false
static
false

getWsdl

getWsdl( ) : string

Get wsdl

Output
string
Details
visibility
public
final
false
static
false

getWsdlCache

getWsdlCache( ) :

Get current SOAP Wsdl Caching option

Details
visibility
public
final
false
static
false

resetSoapInputHeaders

resetSoapInputHeaders( ) : Zend_Soap_Client

Reset SOAP input headers

Details
visibility
public
final
false
static
false

setClassmap

setClassmap( array $classmap ) : Zend_Soap_Client

Set classmap

Arguments
$classmap
array
Details
visibility
public
final
false
static
false
throws
for any invalid class in the class map

setCompressionOptions

setCompressionOptions( int $compressionOptions ) : Zend_Soap_Client

Set compression options

Arguments
$compressionOptions
int
Details
visibility
public
final
false
static
false

setCookie

setCookie(  $cookieName,  $cookieValue = null ) : Zend_Soap_Client

Arguments
$cookieName
$cookieValue
Details
visibility
public
final
false
static
false

setEncoding

setEncoding( string $encoding ) : Zend_Soap_Client

Set encoding

Arguments
$encoding
string
Details
visibility
public
final
false
static
false
throws
with invalid encoding argument

setEncodingMethod

setEncodingMethod( int $use ) : Zend_Soap_Client

Set message encoding method

Arguments
$use
int
One of the SOAP_ENCODED or SOAP_LITERAL constants
Details
visibility
public
final
false
static
false
throws
with invalid message encoding method argument

setHttpLogin

setHttpLogin( string $login ) : Zend_Soap_Client

Set HTTP login

Arguments
$login
string
Details
visibility
public
final
false
static
false

setHttpPassword

setHttpPassword( string $password ) : Zend_Soap_Client

Set HTTP password

Arguments
$password
string
Details
visibility
public
final
false
static
false

setHttpsCertPassphrase

setHttpsCertPassphrase( string $passphrase ) : Zend_Soap_Client

Set HTTPS client certificate passphrase

Arguments
$passphrase
string
Details
visibility
public
final
false
static
false

setHttpsCertificate

setHttpsCertificate( string $localCert ) : Zend_Soap_Client

Set HTTPS client certificate path

Arguments
$localCert
string
local certificate path
Details
visibility
public
final
false
static
false
throws
with invalid local certificate path argument

setLocation

setLocation( string $location ) : Zend_Soap_Client

Set Location

URI in Web Service the target namespace

Arguments
$location
string
Details
visibility
public
final
false
static
false
throws
with invalid uri argument

setOptions

setOptions( array|Zend_Config $options ) : Zend_Soap_Client

Set Options

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

Arguments
$options
arrayZend_Config
Details
visibility
public
final
false
static
false
throws

setProxyHost

setProxyHost( string $proxyHost ) : Zend_Soap_Client

Set proxy host

Arguments
$proxyHost
string
Details
visibility
public
final
false
static
false

setProxyLogin

setProxyLogin( string $proxyLogin ) : Zend_Soap_Client

Set proxy login

Arguments
$proxyLogin
string
Details
visibility
public
final
false
static
false

setProxyPassword

setProxyPassword(  $proxyPassword ) : Zend_Soap_Client

Set proxy password

Arguments
$proxyPassword
Details
visibility
public
final
false
static
false

setProxyPort

setProxyPort( int $proxyPort ) : Zend_Soap_Client

Set proxy port

Arguments
$proxyPort
int
Details
visibility
public
final
false
static
false

setSoapClient

setSoapClient( SoapClient $soapClient ) : Zend_Soap_Client

Arguments
$soapClient
SoapClient
Details
visibility
public
final
false
static
false

setSoapFeatures

setSoapFeatures( string|int $feature ) : Zend_Soap_Client

Set the SOAP Feature options.

Arguments
$feature
stringint
Details
visibility
public
final
false
static
false

setSoapVersion

setSoapVersion( int $version ) : Zend_Soap_Client

Set SOAP version

Arguments
$version
int
One of the SOAP_1_1 or SOAP_1_2 constants
Details
visibility
public
final
false
static
false
throws
with invalid soap version argument

setStreamContext

setStreamContext(  $context ) : Zend_Soap_Client

Set Stream Context

Arguments
$context
Details
visibility
public
final
false
static
false

setStyle

setStyle( int $style ) : Zend_Soap_Client

Set request style

Arguments
$style
int
One of the SOAP_RPC or SOAP_DOCUMENT constants
Details
visibility
public
final
false
static
false
throws
with invalid style argument

setUri

setUri( string $uri ) : Zend_Soap_Client

Set URI

URI in Web Service the target namespace

Arguments
$uri
string
Details
visibility
public
final
false
static
false
throws
with invalid uri argument

setUserAgent

setUserAgent( string|null $userAgent ) : Zend_Soap_Client

Set the string to use in User-Agent header

Arguments
$userAgent
stringnull
Details
visibility
public
final
false
static
false

setWsdl

setWsdl( string $wsdl ) : Zend_Soap_Client

Set wsdl

Arguments
$wsdl
string
Details
visibility
public
final
false
static
false

setWsdlCache

setWsdlCache(  $options ) : Zend_Soap_Client

Set the SOAP Wsdl Caching Options

Arguments
$options
Details
visibility
public
final
false
static
false

validateUrn

validateUrn( string $urn ) : true

Check for valid URN

Arguments
$urn
string
Output
true
Details
visibility
public
final
false
static
false
throws
on invalid URN
Documentation was generated by DocBlox.