php * @access private * @var array */ private static $classmap = array( "GetElement" => "GetElement", "GetElementResponse" => "GetElementResponse", "ElementA" => "ElementA", "ElementB" => "ElementB", ); /** * Constructor using wsdl location and options array * @param string $wsdl WSDL location for this service * @param array $options Options for the SoapClient */ public function __construct($wsdl="http://work.kumbe.it/test-ws/test.wsdl", $options=array()) { foreach(self::$classmap as $wsdlClassName => $phpClassName) { if(!isset($options['classmap'][$wsdlClassName])) { $options['classmap'][$wsdlClassName] = $phpClassName; } } parent::__construct($wsdl, $options); } /** * Checks if an argument list matches against a valid argument type list * @param array $arguments The argument list to check * @param array $validParameters A list of valid argument types * @return boolean true if arguments match against validParameters * @throws Exception invalid function signature message */ public function _checkArguments($arguments, $validParameters) { $variables = ""; foreach ($arguments as $arg) { $type = gettype($arg); if ($type == "object") { $type = get_class($arg); } $variables .= "(".$type.")"; } if (!in_array($variables, $validParameters)) { throw new Exception("Invalid parameter types: ".str_replace(")(", ", ", $variables)); } return true; } /** * Service Call: GetElement * Parameter options: * @param mixed,... See function description for parameter options * @return GetElementResponse * @throws Exception invalid function signature message */ public function GetElement($mixed = null) { $args = func_get_args(); return $this->__soapCall("GetElement", $args); } }} ?>