From f7ca8c7ac8718899c1ab36513aaf3853a4514816 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 12 Jan 2007 05:53:43 +0000 Subject: Fixed a number of SOAP bugs. --- framework/Web/Services/TSoapService.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'framework/Web/Services/TSoapService.php') diff --git a/framework/Web/Services/TSoapService.php b/framework/Web/Services/TSoapService.php index 05e62171..2d161f15 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 TAttributeCollection; + $this->_classMap=new TMap;//TAttributeCollection; } /** @@ -332,7 +332,14 @@ class TSoapServer extends TApplicationComponent } else $server=$this->createServer(); - $server->handle(); + try + { + $server->handle(); + } + catch (Exception $e) + { + $server->fault("SERVER", $e->getMessage(),"", $e->__toString(), ''); + } } /** @@ -340,6 +347,8 @@ class TSoapServer extends TApplicationComponent */ protected function createServer() { + if($this->getApplication()->getMode()===TApplicationMode::Debug) + ini_set("soap.wsdl_cache_enabled",0); return new SoapServer($this->getWsdlUri(),$this->getOptions()); } -- cgit v1.2.3