收藏
回答

WX Server permission denied, open XXX

框架类型 操作时间 AppID
小程序 2018-03-22 wx213d16d8453f0f12

微信Server端,创建一个SOAP Web Server,文件系统打开WSDL报如下错误,请解决。

permission denied, open './HelloService.wsdl'。


全部代码如下:

var http = require('http');

var soap = require('soap');

var helloService = {

Hello_Service: {

Hello_Port: {

sayHello: function (args) {

return {

greeting: args.name + "Hello!!!"

};

}

}

}

}


var xml = require('fs').readFileSync('./HelloService.wsdl', 'utf8'),

server = http.createServer(function (request, response) {

response.end("404: Not Found: " + request.url)

});

server.listen(8000);

soap.listen(server, '/wsdl', helloService, xml);

console.log('Webserver start listen at http://eqeju3pb.qcloud.la:8000/wsdl?wsdl');


回答关注问题邀请回答
收藏
登录 后发表内容