From 121e88c87ba310f03d4587bd68c6cf4b7b7ea2b8 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 12 Jan 2007 06:13:00 +0000 Subject: fix classmap for soap service. --- framework/Web/Services/TSoapService.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'framework') 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; } -- cgit v1.2.3