diff options
author | wei <> | 2007-01-12 06:27:16 +0000 |
---|---|---|
committer | wei <> | 2007-01-12 06:27:16 +0000 |
commit | 6626a5498df1e9231c6711544d69e93feebfec21 (patch) | |
tree | 366f9ece6a5955e7485bc36c6cee11f0ae3e6992 /framework/Web/Services | |
parent | 121e88c87ba310f03d4587bd68c6cf4b7b7ea2b8 (diff) |
simplify class maps in soap server
Diffstat (limited to 'framework/Web/Services')
-rw-r--r-- | framework/Web/Services/TSoapService.php | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/framework/Web/Services/TSoapService.php b/framework/Web/Services/TSoapService.php index 69f133fe..1472ffc4 100644 --- a/framework/Web/Services/TSoapService.php +++ b/framework/Web/Services/TSoapService.php @@ -289,15 +289,6 @@ class TSoapServer extends TApplicationComponent private $_wsdlUri=''; /** - * Constructor. - * It creates the classmap object. - */ - public function __construct() - { - $this->_classMap=new TAttributeCollection; - } - - /** * @return string the ID of the SOAP server */ public function getID() @@ -368,9 +359,9 @@ class TSoapServer extends TApplicationComponent $options['encoding']=$this->_encoding; if(!empty($this->_uri)) $options['uri']=$this->_uri; - if($this->_classMap->getCount()>0) + if(is_string($this->_classMap)) { - foreach($this->_classMap as $className) + foreach(preg_split('/\s?,\s?/', $this->_classMap) as $className) $options['classmap'][$className]=$className; //complex type uses the class name in the wsdl } return $options; @@ -533,12 +524,20 @@ class TSoapServer extends TApplicationComponent } /** - * @return TAttributeCollection the class map for the SOAP service + * @return string comma delimit list of complex type classes. */ - public function getClassMap() + public function getClassMaps() { return $this->_classMap; } + + /** + * @return string comma delimit list of class names + */ + public function setClassMaps($classes) + { + $this->_classMap = $classes; + } } ?>
\ No newline at end of file |