使用Zend Soap类和自动WSDL
问题描述:
一些非常奇怪的东西。 WSDL文件生成正常。下面是源简单的类使用Zend Soap类和自动WSDL
class SoapTest
{
/**
* Prapapapapapapap
* @return string Bls bls
*/
public function getList()
{
return "code";
}
}
代码WSDL,服务器,客户端
if (isset($_REQUEST['wsdl'])) {
$ad = new Zend_Soap_AutoDiscover();
$ad->setClass('SoapTest');
$ad->handle();
} else if (isset($_REQUEST['client'])) {
$client = new Zend_Soap_Client("http://localhost/test.php");
echo $client->getList();
}
else {
$server = new Zend_Soap_Server("http://localhost/test.php?wsdl");
$server->setClass('SoapTest');
$server->handle();
}
自动生成WSDL有一些问题SoapServer的
未捕获的异常 'Zend_Soap_Server_Exception' 与消息 '无效的XML' Z:\ home \ localhost \ www \ Zend \ Soap \ Server.php(817):Zend_Soap_Server - > _ setRequest('') )#1 Z:\ home \ localhost \ www \ test.php(54):Zend_Soap_Server-> handle()#2 {main} thr自己在Z:\ home \ localhost \ www \ Zend \ Soap \ Server.php上线694
我只是不明白为什么?在WSDL中没有像空格或\ n那样的额外符号,所有头文件都被指定。
的PHP 5.2.12 ZF 1.10.0
答
所有从eAccelerator在
问题