从node.js中获取SOAP服务

时间:2016-08-24 13:03:27

标签: node.js soap

我正在使用SOAP服务,我的代码是:

function myfunction(){

var result = 0;
 soap.createClient('http://ipaddress/servicename?wsdl', function(err,    client) {

       client.myServiceFunction(parameters, function (err, result, body) {

        parseString(body, function (err, response) {

            console.log(response);
        })
    })
}

) }

但是我得到了“getaddrinfo ENOTFOUND”错误并且它在邮递员工作。

谢谢。

0 个答案:

没有答案