From e3ea3400bd54336be58caef9efd0d0ac9c189054 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 19 Jan 2007 07:47:59 +0000 Subject: Enforce encoding of wsdl and soap service headers and --- framework/3rdParty/WsdlGen/WsdlGenerator.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework/3rdParty/WsdlGen/WsdlGenerator.php') diff --git a/framework/3rdParty/WsdlGen/WsdlGenerator.php b/framework/3rdParty/WsdlGen/WsdlGenerator.php index 4d6b5686..f2a6b380 100644 --- a/framework/3rdParty/WsdlGen/WsdlGenerator.php +++ b/framework/3rdParty/WsdlGen/WsdlGenerator.php @@ -89,11 +89,12 @@ class WsdlGenerator * WSDL can then be retrieved by calling * @param string $className The name of the class to generate for * @param string $serviceUri The URI of the service that handles this WSDL + * @param string $encoding character encoding. * @return void */ - public function generateWsdl($className, $serviceUri='') + public function generateWsdl($className, $serviceUri='',$encoding='') { - $this->wsdlDocument = new Wsdl($className, $serviceUri); + $this->wsdlDocument = new Wsdl($className, $serviceUri, $encoding); $classReflect = new ReflectionClass($className); $methods = $classReflect->getMethods(); @@ -116,11 +117,12 @@ class WsdlGenerator * Static method that generates and outputs the generated wsdl * @param string $className The name of the class to export * @param string $serviceUri The URI of the service that handles this WSDL + * @param string $encoding character encoding. */ - public static function generate($className, $serviceUri='') + public static function generate($className, $serviceUri='', $encoding='') { $generator = WsdlGenerator::getInstance(); - $generator->generateWsdl($className, $serviceUri); + $generator->generateWsdl($className, $serviceUri,$encoding); //header('Content-type: text/xml'); return $generator->getWsdl(); //exit(); -- cgit v1.2.3