Source of file Common.php
Size: 1,735 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Soap/Client/Common.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Soap\Client; use SoapClient; if (extension_loaded('soap')) { class Common extends SoapClient { /** * doRequest() pre-processing method * * @var callable */ protected $doRequestCallback; /** * Common Soap Client constructor * * @param callable $doRequestCallback * @param string $wsdl * @param array $options */ public function __construct($doRequestCallback, $wsdl, $options) { $this->doRequestCallback = $doRequestCallback; parent::__construct($wsdl, $options); } /** * Performs SOAP request over HTTP. * Overridden to implement different transport layers, perform additional * XML processing or other purpose. * * @param string $request * @param string $location * @param string $action * @param int $version * @param int $oneWay * @return mixed */ public function __doRequest($request, $location, $action, $version, $oneWay = null) { // ltrim is a workaround for https://bugs.php.net/bug.php?id=63780 if ($oneWay === null) { return call_user_func($this->doRequestCallback, $this, ltrim($request), $location, $action, $version); } return call_user_func($this->doRequestCallback, $this, ltrim($request), $location, $action, $version, $oneWay); } } } // end if (extension_loaded('soap') |