zend-soap

Zend Soap Server with wsdl autodiscovery doesn't work as expected

江枫思渺然 提交于 2019-12-02 06:13:19
Duplicate of this question I'm trying to create a web service with Zend_Soap_Server in wsdl autodiscovery mode, but I obtain very strange effects... here the code: server: <?php require_once('Zend/Soap/AutoDiscover.php'); require_once('Zend/Soap/Server.php'); require_once('Zend/Soap/Wsdl.php'); require_once('library/SoapActions.php'); $wsdl = new Zend_Soap_Autodiscover(); $wsdl->setClass('SoapActions'); if (isset($_GET['wsdl'])) { $wsdl->handle(); } else { $server = new Zend_Soap_Server('http://localhost:8083/server.php?wsdl'); $server->setClass('SoapActions'); $server->setEncoding('ISO-8859-1