7
* This source file is subject to the new BSD license that is bundled
8
* with this package in the file LICENSE.txt.
9
* It is also available through the world-wide-web at this URL:
10
* http://framework.zend.com/license/new-bsd
11
* If you did not receive a copy of the license and are unable to
12
* obtain it through the world-wide-web, please send an email
13
* to license@zend.com so we can send you a copy immediately.
18
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
19
* @license http://framework.zend.com/license/new-bsd New BSD License
22
/** Zend_Soap_Client */
23
require_once 'Zend/Soap/Client.php';
25
if (extension_loaded('soap')) {
28
* Zend_Soap_Client_Local
30
* Class is intended to be used with .Net Web Services.
32
* Important! Class is at experimental stage now.
33
* Please leave your notes, compatiblity issues reports or
34
* suggestions in fw-webservices@lists.zend.com or fw-general@lists.com
40
class Zend_Soap_Client_DotNet extends Zend_Soap_Client
46
* @param array $options
48
public function __construct($wsdl = null, $options = null)
50
// Use SOAP 1.1 as default
51
$this->setSoapVersion(SOAP_1_1);
53
parent::__construct($wsdl, $options);
58
* Perform arguments pre-processing
60
* My be overridden in descendant classes
62
* @param array $arguments
63
* @throws Zend_Soap_Client_Exception
65
protected function _preProcessArguments($arguments)
67
if (count($arguments) > 1 ||
68
(count($arguments) == 1 && !is_array(reset($arguments)))
70
require_once 'Zend/Soap/Client/Exception.php';
71
throw new Zend_Soap_Client_Exception('.Net webservice arguments have to be grouped into array: array(\'a\' => $a, \'b\' => $b, ...).');
75
return array($arguments);
79
* Perform result pre-processing
81
* My be overridden in descendant classes
83
* @param array $arguments
85
protected function _preProcessResult($result)
87
$resultProperty = $this->getLastMethod() . 'Result';
89
return $result->$resultProperty;
94
} // end if (extension_loaded('soap')