收藏
回答

Wafer2中Server端读取文件报错


根目录下放一个文件‘helloservice.wsdl’,然后就不能部署到腾讯云上了。会报错

Error: ENOENT: no such file or directory, open 'helloservice.wsdl'


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

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

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

});


最后一次编辑于  2018-03-27  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

1 个回答