I am developing a soap webservice using zend_soap_server
.
I use Zend_Soap_AutoDiscover
to auto generate wsdl of my webservice.
Here is the code
public function indexAction() { // my websrvice method $server = new Zend_Soap_Server("admin/webservice/wsdl"); $server->setEncoding('UTF-8'); $server->setClass('Webservice'); $server->handle(); } public function wsdlAction() { // my wsdl method $wsdl = new Zend_Soap_AutoDiscover(); $wsdl->setClass('Webservice'); $wsdl->setUri("/admin/webservice"); $wsdl->handle(); }
My problem is that when i view the source of generated wsdl the first line is:
<?xml version="1.0"?>
But i want the encoding in the xml tag:
<?xml version="1.0" encoding="UTF-8"?>
What should i do to get this?
Thx in advance.