【急急急!】开发SOAP服务端出错? no xml document?

浏览:417 发布日期:2018/12/06 分类:求助交流
namespace Action\Api;
use Think\Action;
class AdbServiceApiAction extends Action {

用tp框架开发soap服务端反回数据时,有两个项目,
一个项目没有用命名空间,就成功返回数据,另一个顶目用了下面的命名空间,就报错looks like we got no xml document?为何?

namespace Action\Api;
use Think\Action;

另外
soap 服务端用的是NON-WSDL模式,用命名空间时,new时有加了斜线,$soapServer=new \SoapServer(null,$parameter);

服务端SOAP 类底部是
$parameter=array(
'uri'=>'namespace',
'location'=>'http://localhost/'
);
$soapServer=new \SoapServer(null,$parameter);
$soapServer->setClass('AdbServiceApiAction');
$soapServer->handle();


TP用的是3.2版本,旧项目
最佳答案
评论( 相关
后面还有条评论,点击查看>>