Definition at line 47 of file Client.php.
◆ __construct()
__construct |
( |
|
$wsdl = null , |
|
|
|
$options = null |
|
) |
| |
Constructor
- Parameters
-
string | $wsdl | |
array | $options | |
Definition at line 149 of file Client.php.
151 if (!extension_loaded(
'soap')) {
152 #require_once 'Zend/Soap/Client/Exception.php'; 156 if ($wsdl !==
null) {
◆ __call()
__call |
( |
|
$name, |
|
|
|
$arguments |
|
) |
| |
Perform a SOAP call
- Parameters
-
string | $name | |
array | $arguments | |
- Returns
- mixed
Definition at line 1148 of file Client.php.
1152 $this->_lastMethod =
$name;
1154 $soapHeaders = array_merge($this->_permanentSoapInputHeaders, $this->_soapInputHeaders);
1158 (count($soapHeaders) > 0)? $soapHeaders :
null,
1159 $this->_soapOutputHeaders);
1162 $this->_soapInputHeaders = array();
_preProcessResult($result)
_preProcessArguments($arguments)
if(!isset($_GET['name'])) $name
◆ _doRequest()
_doRequest |
( |
Zend_Soap_Client_Common |
$client, |
|
|
|
$request, |
|
|
|
$location, |
|
|
|
$action, |
|
|
|
$version, |
|
|
|
$one_way = null |
|
) |
| |
Do request proxy method.
May be overridden in subclasses
Definition at line 1029 of file Client.php.
1032 if ($one_way ==
null) {
call_user_func($callable, $param)
◆ _initSoapClientObject()
_initSoapClientObject |
( |
| ) |
|
|
protected |
Initialize SOAP Client object
- Exceptions
-
Definition at line 1044 of file Client.php.
1049 if ($wsdl ==
null) {
1050 if (!isset(
$options[
'location'])) {
1051 #require_once 'Zend/Soap/Client/Exception.php'; 1055 #require_once 'Zend/Soap/Client/Exception.php'; 1060 #require_once 'Zend/Soap/Client/Exception.php'; 1064 #require_once 'Zend/Soap/Client/Exception.php'; 1070 $this->_soapClient =
new Zend_Soap_Client_Common(array($this,
'_doRequest'), $wsdl,
$options);
◆ _preProcessArguments()
_preProcessArguments |
( |
|
$arguments | ) |
|
|
protected |
Perform arguments pre-processing
My be overridden in descendant classes
- Parameters
-
Definition at line 1081 of file Client.php.
◆ _preProcessResult()
_preProcessResult |
( |
|
$result | ) |
|
|
protected |
Perform result pre-processing
My be overridden in descendant classes
- Parameters
-
Definition at line 1094 of file Client.php.
◆ addSoapInputHeader()
addSoapInputHeader |
( |
SoapHeader |
$header, |
|
|
|
$permanent = false |
|
) |
| |
Add SOAP input header
- Parameters
-
SoapHeader | $header | |
boolean | $permanent | |
- Returns
- Zend_Soap_Client
Definition at line 1107 of file Client.php.
1110 $this->_permanentSoapInputHeaders[] = $header;
1112 $this->_soapInputHeaders[] = $header;
◆ getClassmap()
Retrieve classmap
- Returns
- mixed
Definition at line 401 of file Client.php.
◆ getCompressionOptions()
getCompressionOptions |
( |
| ) |
|
Get Compression options
- Returns
- int
Definition at line 794 of file Client.php.
◆ getEncoding()
Get encoding
- Returns
- string
Definition at line 432 of file Client.php.
◆ getEncodingMethod()
Get message encoding method
- Returns
- int
Definition at line 571 of file Client.php.
◆ getExceptions()
◆ getFunctions()
Return a list of available functions
- Returns
- array
- Exceptions
-
Definition at line 1174 of file Client.php.
1176 if ($this->
getWsdl() ==
null) {
1177 #require_once 'Zend/Soap/Client/Exception.php'; 1182 return $soapClient->__getFunctions();
◆ getHttpLogin()
Retrieve HTTP Login
- Returns
- string
Definition at line 596 of file Client.php.
◆ getHttpPassword()
Retrieve HTTP Password
- Returns
- string
Definition at line 621 of file Client.php.
◆ getHttpsCertificate()
Get HTTPS client certificate path
- Returns
- string
Definition at line 742 of file Client.php.
◆ getHttpsCertPassphrase()
getHttpsCertPassphrase |
( |
| ) |
|
Get HTTPS client certificate passphrase
- Returns
- string
Definition at line 767 of file Client.php.
◆ getLastMethod()
Retrieve last invoked method
- Returns
- string
Definition at line 1010 of file Client.php.
◆ getLastRequest()
Retrieve request XML
- Returns
- string
Definition at line 954 of file Client.php.
956 if ($this->_soapClient !==
null) {
957 return $this->_soapClient->__getLastRequest();
◆ getLastRequestHeaders()
getLastRequestHeaders |
( |
| ) |
|
Retrieve request headers
- Returns
- string
Definition at line 982 of file Client.php.
984 if ($this->_soapClient !==
null) {
985 return $this->_soapClient->__getLastRequestHeaders();
◆ getLastResponse()
Get response XML
- Returns
- string
Definition at line 968 of file Client.php.
970 if ($this->_soapClient !==
null) {
971 return $this->_soapClient->__getLastResponse();
◆ getLastResponseHeaders()
getLastResponseHeaders |
( |
| ) |
|
Retrieve response headers (as string)
- Returns
- string
Definition at line 996 of file Client.php.
998 if ($this->_soapClient !==
null) {
999 return $this->_soapClient->__getLastResponseHeaders();
◆ getLastSoapOutputHeaderObjects()
getLastSoapOutputHeaderObjects |
( |
| ) |
|
Get last SOAP output headers
- Returns
- array
Definition at line 1136 of file Client.php.
◆ getLocation()
Retrieve URI
- Returns
- string
Definition at line 509 of file Client.php.
◆ getOptions()
Return array of options suitable for using with SoapClient constructor
- Returns
- array
Definition at line 296 of file Client.php.
329 if (in_array($key, array(
'user_agent',
'cache_wsdl',
'compression',
'exceptions'))) {
◆ getProxyHost()
Retrieve proxy host
- Returns
- string
Definition at line 646 of file Client.php.
◆ getProxyLogin()
Retrieve proxy login
- Returns
- string
Definition at line 696 of file Client.php.
◆ getProxyPassword()
Retrieve proxy password
- Returns
- string
Definition at line 804 of file Client.php.
◆ getProxyPort()
Retrieve proxy port
- Returns
- int
Definition at line 671 of file Client.php.
◆ getSoapClient()
- Returns
- SoapClient
Definition at line 1223 of file Client.php.
1225 if ($this->_soapClient ==
null) {
◆ getSoapFeatures()
Return current SOAP Features options
- Returns
- int
Definition at line 859 of file Client.php.
◆ getSoapVersion()
Get SOAP version
- Returns
- int
Definition at line 368 of file Client.php.
◆ getStreamContext()
◆ getStyle()
Get request style
- Returns
- int
Definition at line 540 of file Client.php.
◆ getTypes()
Get used types.
- Returns
- arrayReturn a list of SOAP types
-
array
- Exceptions
-
Definition at line 1198 of file Client.php.
1200 if ($this->
getWsdl() ==
null) {
1201 #require_once 'Zend/Soap/Client/Exception.php'; 1207 return $soapClient->__getTypes();
◆ getUri()
Retrieve URI
- Returns
- string
Definition at line 480 of file Client.php.
◆ getUserAgent()
Get current string to use in User-Agent header
- Returns
- string|null
Definition at line 911 of file Client.php.
◆ getWsdl()
Get wsdl
- Returns
- string
Definition at line 183 of file Client.php.
◆ getWsdlCache()
Get current SOAP Wsdl Caching option
- Returns
- int
Definition at line 885 of file Client.php.
◆ resetSoapInputHeaders()
resetSoapInputHeaders |
( |
| ) |
|
Reset SOAP input headers
- Returns
- Zend_Soap_Client
Definition at line 1123 of file Client.php.
1125 $this->_permanentSoapInputHeaders = array();
1126 $this->_soapInputHeaders = array();
◆ setClassmap()
setClassmap |
( |
array |
$classmap | ) |
|
Set classmap
- Parameters
-
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 380 of file Client.php.
384 #require_once 'Zend/Soap/Client/Exception.php'; 389 $this->_classmap = $classmap;
391 $this->_soapClient =
null;
$_option $_optionId $class
◆ setCompressionOptions()
setCompressionOptions |
( |
|
$compressionOptions | ) |
|
Set compression options
- Parameters
-
int | null | $compressionOptions | |
- Returns
- Zend_Soap_Client
Definition at line 778 of file Client.php.
780 if ($compressionOptions ===
null) {
781 $this->_compression =
null;
783 $this->_compression = (int)$compressionOptions;
785 $this->_soapClient =
null;
◆ setCookie()
setCookie |
( |
|
$cookieName, |
|
|
|
$cookieValue = null |
|
) |
| |
◆ setEncoding()
Set encoding
- Parameters
-
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 413 of file Client.php.
415 if (!is_string($encoding)) {
416 #require_once 'Zend/Soap/Client/Exception.php'; 420 $this->_encoding = $encoding;
422 $this->_soapClient =
null;
◆ setEncodingMethod()
setEncodingMethod |
( |
|
$use | ) |
|
Set message encoding method
- Parameters
-
int | $use | One of the SOAP_ENCODED or SOAP_LITERAL constants |
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 552 of file Client.php.
554 if (!in_array($use, array(SOAP_ENCODED, SOAP_LITERAL))) {
555 #require_once 'Zend/Soap/Client/Exception.php'; 561 $this->_soapClient =
null;
◆ setExceptions()
setExceptions |
( |
|
$exceptions | ) |
|
◆ setHttpLogin()
Set HTTP login
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 582 of file Client.php.
584 $this->_login = $login;
586 $this->_soapClient =
null;
◆ setHttpPassword()
setHttpPassword |
( |
|
$password | ) |
|
Set HTTP password
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 607 of file Client.php.
609 $this->_password = $password;
611 $this->_soapClient =
null;
◆ setHttpsCertificate()
setHttpsCertificate |
( |
|
$localCert | ) |
|
Set HTTPS client certificate path
- Parameters
-
string | $localCert | local certificate path |
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 723 of file Client.php.
726 #require_once 'Zend/Soap/Client/Exception.php'; 730 $this->_local_cert = $localCert;
732 $this->_soapClient =
null;
◆ setHttpsCertPassphrase()
setHttpsCertPassphrase |
( |
|
$passphrase | ) |
|
Set HTTPS client certificate passphrase
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 753 of file Client.php.
755 $this->_passphrase = $passphrase;
757 $this->_soapClient =
null;
◆ setLocation()
Set Location
URI in Web Service the target namespace
- Parameters
-
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 494 of file Client.php.
497 $this->_location = $location;
499 $this->_soapClient =
null;
◆ setOptions()
Set Options
Allows setting options as an associative array of option => value pairs.
- Parameters
-
- Returns
- Zend_Soap_Client
- Exceptions
-
Zend_SoapClient_Exception | |
Definition at line 197 of file Client.php.
246 case 'proxy_password':
258 case 'stream_context':
282 #require_once 'Zend/Soap/Client/Exception.php';
setProxyLogin($proxyLogin)
setHttpsCertificate($localCert)
setStreamContext($context)
setClassmap(array $classmap)
setHttpsCertPassphrase($passphrase)
setProxyPassword($proxyPassword)
setExceptions($exceptions)
setCompressionOptions($compressionOptions)
setSoapFeatures($feature)
setHttpPassword($password)
◆ setProxyHost()
setProxyHost |
( |
|
$proxyHost | ) |
|
Set proxy host
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 632 of file Client.php.
634 $this->_proxy_host = $proxyHost;
636 $this->_soapClient =
null;
◆ setProxyLogin()
setProxyLogin |
( |
|
$proxyLogin | ) |
|
Set proxy login
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 682 of file Client.php.
684 $this->_proxy_login = $proxyLogin;
686 $this->_soapClient =
null;
◆ setProxyPassword()
setProxyPassword |
( |
|
$proxyPassword | ) |
|
Set proxy password
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 707 of file Client.php.
709 $this->_proxy_password = $proxyPassword;
711 $this->_soapClient =
null;
◆ setProxyPort()
setProxyPort |
( |
|
$proxyPort | ) |
|
Set proxy port
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 657 of file Client.php.
659 $this->_proxy_port = (int)$proxyPort;
661 $this->_soapClient =
null;
◆ setSoapClient()
setSoapClient |
( |
SoapClient |
$soapClient | ) |
|
◆ setSoapFeatures()
setSoapFeatures |
( |
|
$feature | ) |
|
Set the SOAP Feature options.
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 846 of file Client.php.
848 $this->_features = $feature;
850 $this->_soapClient =
null;
◆ setSoapVersion()
setSoapVersion |
( |
|
$version | ) |
|
Set SOAP version
- Parameters
-
int | $version | One of the SOAP_1_1 or SOAP_1_2 constants |
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 350 of file Client.php.
352 if (!in_array(
$version, array(SOAP_1_1, SOAP_1_2))) {
353 #require_once 'Zend/Soap/Client/Exception.php'; 358 $this->_soapClient =
null;
◆ setStreamContext()
setStreamContext |
( |
|
$context | ) |
|
◆ setStyle()
Set request style
- Parameters
-
int | $style | One of the SOAP_RPC or SOAP_DOCUMENT constants |
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 521 of file Client.php.
523 if (!in_array($style, array(SOAP_RPC, SOAP_DOCUMENT))) {
524 #require_once 'Zend/Soap/Client/Exception.php'; 528 $this->_style = $style;
530 $this->_soapClient =
null;
◆ setUri()
Set URI
URI in Web Service the target namespace
- Parameters
-
- Returns
- Zend_Soap_Client
- Exceptions
-
Definition at line 465 of file Client.php.
470 $this->_soapClient =
null;
◆ setUserAgent()
setUserAgent |
( |
|
$userAgent | ) |
|
Set the string to use in User-Agent header
- Parameters
-
- Returns
- Zend_Soap_Client
Definition at line 896 of file Client.php.
898 if ($userAgent ===
null) {
899 $this->_user_agent =
null;
901 $this->_user_agent = (string)$userAgent;
◆ setWsdl()
◆ setWsdlCache()
Set the SOAP Wsdl Caching Options
- Parameters
-
string | int | boolean | null | $caching | |
- Returns
- Zend_Soap_Client
Definition at line 870 of file Client.php.
872 if ($caching ===
null) {
873 $this->_cache_wsdl =
null;
875 $this->_cache_wsdl = (int)$caching;
◆ validateUrn()
Check for valid URN
- Parameters
-
- Returns
- true
- Exceptions
-
Definition at line 444 of file Client.php.
446 $scheme = parse_url($urn, PHP_URL_SCHEME);
447 if ($scheme ===
false || $scheme ===
null) {
448 #require_once 'Zend/Soap/Client/Exception.php';
◆ $_cache_wsdl
◆ $_classmap
◆ $_compression
◆ $_connection_timeout
$_connection_timeout = null |
|
protected |
◆ $_encoding
◆ $_exceptions
◆ $_faultExceptions
$_faultExceptions = array() |
|
protected |
◆ $_features
◆ $_lastMethod
◆ $_local_cert
◆ $_location
◆ $_login
◆ $_passphrase
◆ $_password
◆ $_permanentSoapInputHeaders
$_permanentSoapInputHeaders = array() |
|
protected |
◆ $_proxy_host
◆ $_proxy_login
◆ $_proxy_password
◆ $_proxy_port
◆ $_soapClient
◆ $_soapInputHeaders
$_soapInputHeaders = array() |
|
protected |
◆ $_soapOutputHeaders
$_soapOutputHeaders = array() |
|
protected |
◆ $_soapVersion
◆ $_stream_context
◆ $_style
◆ $_uri
Set of other SoapClient options
Definition at line 74 of file Client.php.
◆ $_use
◆ $_user_agent
◆ $_wsdl
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Soap/Client.php