setSoapVersion(SOAP_1_1); parent::__construct($wsdl, $options); } /** * Perform arguments pre-processing * * My be overridden in descendant classes * * @param array $arguments * @throws Zend_Soap_Client_Exception */ protected function _preProcessArguments($arguments) { if (count($arguments) > 1 || (count($arguments) == 1 && !is_array(reset($arguments))) ) { #require_once 'Zend/Soap/Client/Exception.php'; throw new Zend_Soap_Client_Exception('.Net webservice arguments have to be grouped into array: array(\'a\' => $a, \'b\' => $b, ...).'); } // Do nothing return $arguments; } /** * Perform result pre-processing * * My be overridden in descendant classes * * @param array $arguments */ protected function _preProcessResult($result) { $resultProperty = $this->getLastMethod() . 'Result'; return $result->$resultProperty; } } } // end if (extension_loaded('soap')