diff options
author | wei <> | 2007-01-12 06:13:00 +0000 |
---|---|---|
committer | wei <> | 2007-01-12 06:13:00 +0000 |
commit | 121e88c87ba310f03d4587bd68c6cf4b7b7ea2b8 (patch) | |
tree | d03e578ef42da29f81231cea7878f4d1b9c475f2 /framework | |
parent | 9eb0219c3cbd0e97b525976b247b0701a274eff9 (diff) |
fix classmap for soap service.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/Services/TSoapService.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/Services/TSoapService.php b/framework/Web/Services/TSoapService.php index 2d161f15..69f133fe 100644 --- a/framework/Web/Services/TSoapService.php +++ b/framework/Web/Services/TSoapService.php @@ -294,7 +294,7 @@ class TSoapServer extends TApplicationComponent */ public function __construct() { - $this->_classMap=new TMap;//TAttributeCollection; + $this->_classMap=new TAttributeCollection; } /** @@ -369,7 +369,10 @@ class TSoapServer extends TApplicationComponent if(!empty($this->_uri)) $options['uri']=$this->_uri; if($this->_classMap->getCount()>0) - $options['classmap']=$this->_classMap->toArray(); + { + foreach($this->_classMap as $className) + $options['classmap'][$className]=$className; //complex type uses the class name in the wsdl + } return $options; } |