Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Common.php
Go to the documentation of this file.
1 <?php
24 if (extension_loaded('soap')) {
25 
31 class Zend_Soap_Client_Common extends SoapClient
32 {
38  protected $_doRequestCallback;
39 
47  function __construct($doRequestCallback, $wsdl, $options)
48  {
49  $this->_doRequestCallback = $doRequestCallback;
50 
51  parent::__construct($wsdl, $options);
52  }
53 
65  function __doRequest($request, $location, $action, $version, $one_way = null)
66  {
67  if ($one_way === null) {
68  return call_user_func($this->_doRequestCallback, $this, $request, $location, $action, $version);
69  } else {
70  return call_user_func($this->_doRequestCallback, $this, $request, $location, $action, $version, $one_way);
71  }
72  }
73 
74 }
75 
76 } // end if (extension_loaded('soap')