Soap/Client.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Soap
- Subpackage
- Client
- Version
- $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
\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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_classmap = nullArray of SOAP type => PHP class pairings for handling return/incoming values
nullDetails- Type
- array

array $_faultExceptions = array()Registered fault exceptions
array()Details- Type
- array

array $_permanentSoapInputHeaders = array()Permanent SOAP request headers (shared between requests).
Array of SoapHeader objects
array()Details- Type
- array

array $_soapInputHeaders = array()SOAP request headers.
Array of SoapHeader objects
array()Details- Type
- array

array $_soapOutputHeaders = array()Output SOAP headers.
Array of SoapHeader objects
array()Details- Type
- array

int $_soapVersion = SOAP_1_2SOAP version to use; SOAP_1_2 by default, to allow processing of headers
SOAP_1_2Details- Type
- int
Methods

__call(string $name, array $arguments) : mixedPerform a SOAP call
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $arguments | array |
| Type | Description |
|---|---|
| mixed |

__construct(string $wsdl = null, array $options = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $wsdl | string | |
| $options | array |

_initSoapClientObject() : voidInitialize SOAP Client object
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception |

_preProcessArguments(array $arguments) : voidPerform arguments pre-processing
My be overridden in descendant classes
| Name | Type | Description |
|---|---|---|
| $arguments | array |

_preProcessResult( $result) : voidPerform result pre-processing
My be overridden in descendant classes
| Name | Type | Description |
|---|---|---|
| $result |

addSoapInputHeader(\SoapHeader $header, boolean $permanent = false) : \Zend_Soap_ClientAdd SOAP input header
| Name | Type | Description |
|---|---|---|
| $header | \SoapHeader | |
| $permanent | boolean |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

getFunctions() : arrayReturn a list of available functions
| Type | Description |
|---|---|
| array |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception |

getHttpsCertPassphrase() : stringGet HTTPS client certificate passphrase
| Type | Description |
|---|---|
| string |

getLastResponseHeaders() : stringRetrieve response headers (as string)
| Type | Description |
|---|---|
| string |

getOptions() : arrayReturn array of options suitable for using with SoapClient constructor
| Type | Description |
|---|---|
| array |

getTypes() : arrayReturn a list of SOAP types
| Type | Description |
|---|---|
| array |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception |

getUserAgent() : string | nullGet current string to use in User-Agent header
| Type | Description |
|---|---|
| string | null |

resetSoapInputHeaders() : \Zend_Soap_ClientReset SOAP input headers
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setClassmap(array $classmap) : \Zend_Soap_ClientSet classmap
| Name | Type | Description |
|---|---|---|
| $classmap | array |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | for any invalid class in the class map |

setCompressionOptions(int | null $compressionOptions) : \Zend_Soap_ClientSet compression options
| Name | Type | Description |
|---|---|---|
| $compressionOptions | int | null |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setCookie( $cookieName, $cookieValue = null) : \Zend_Soap_Client| Name | Type | Description |
|---|---|---|
| $cookieName | ||
| $cookieValue |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setEncoding(string $encoding) : \Zend_Soap_ClientSet encoding
| Name | Type | Description |
|---|---|---|
| $encoding | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid encoding argument |

setEncodingMethod(int $use) : \Zend_Soap_ClientSet message encoding method
| Name | Type | Description |
|---|---|---|
| $use | int | One of the SOAP_ENCODED or SOAP_LITERAL constants |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid message encoding method argument |

setHttpLogin(string $login) : \Zend_Soap_ClientSet HTTP login
| Name | Type | Description |
|---|---|---|
| $login | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setHttpPassword(string $password) : \Zend_Soap_ClientSet HTTP password
| Name | Type | Description |
|---|---|---|
| $password | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setHttpsCertPassphrase(string $passphrase) : \Zend_Soap_ClientSet HTTPS client certificate passphrase
| Name | Type | Description |
|---|---|---|
| $passphrase | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setHttpsCertificate(string $localCert) : \Zend_Soap_ClientSet HTTPS client certificate path
| Name | Type | Description |
|---|---|---|
| $localCert | string | local certificate path |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid local certificate path argument |

setLocation(string $location) : \Zend_Soap_ClientSet Location
URI in Web Service the target namespace
| Name | Type | Description |
|---|---|---|
| $location | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid uri argument |

setOptions(array | \Zend_Config $options) : \Zend_Soap_ClientSet Options
Allows setting options as an associative array of option => value pairs.
| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_SoapClient_Exception |

setProxyHost(string $proxyHost) : \Zend_Soap_ClientSet proxy host
| Name | Type | Description |
|---|---|---|
| $proxyHost | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setProxyLogin(string $proxyLogin) : \Zend_Soap_ClientSet proxy login
| Name | Type | Description |
|---|---|---|
| $proxyLogin | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setProxyPassword( $proxyPassword) : \Zend_Soap_ClientSet proxy password
| Name | Type | Description |
|---|---|---|
| $proxyPassword |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setProxyPort(int $proxyPort) : \Zend_Soap_ClientSet proxy port
| Name | Type | Description |
|---|---|---|
| $proxyPort | int |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setSoapClient(\SoapClient $soapClient) : \Zend_Soap_Client| Name | Type | Description |
|---|---|---|
| $soapClient | \SoapClient |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setSoapFeatures(string | int $feature) : \Zend_Soap_ClientSet the SOAP Feature options.
| Name | Type | Description |
|---|---|---|
| $feature | string | int |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setSoapVersion(int $version) : \Zend_Soap_ClientSet SOAP version
| Name | Type | Description |
|---|---|---|
| $version | int | One of the SOAP_1_1 or SOAP_1_2 constants |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid soap version argument |

setStreamContext( $context) : \Zend_Soap_ClientSet Stream Context
| Name | Type | Description |
|---|---|---|
| $context |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setStyle(int $style) : \Zend_Soap_ClientSet request style
| Name | Type | Description |
|---|---|---|
| $style | int | One of the SOAP_RPC or SOAP_DOCUMENT constants |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid style argument |

setUri(string $uri) : \Zend_Soap_ClientSet URI
URI in Web Service the target namespace
| Name | Type | Description |
|---|---|---|
| $uri | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | with invalid uri argument |

setUserAgent(string | null $userAgent) : \Zend_Soap_ClientSet the string to use in User-Agent header
| Name | Type | Description |
|---|---|---|
| $userAgent | string | null |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setWsdl(string $wsdl) : \Zend_Soap_ClientSet wsdl
| Name | Type | Description |
|---|---|---|
| $wsdl | string |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

setWsdlCache(string | int | boolean | null $caching) : \Zend_Soap_ClientSet the SOAP Wsdl Caching Options
| Name | Type | Description |
|---|---|---|
| $caching | string | int | boolean | null |
| Type | Description |
|---|---|
| \Zend_Soap_Client |

validateUrn(string $urn) : trueCheck for valid URN
| Name | Type | Description |
|---|---|---|
| $urn | string |
| Type | Description |
|---|---|
| true |
| Exception | Description |
|---|---|
| \Zend_Soap_Client_Exception | on invalid URN |