在Node js中调用Web服务:未处理的拒绝错误:无效的WSDL

时间:2018-09-11 18:21:40

标签: ios

以下Node.js代码给我错误“未处理的拒绝错误:无效的WSDL”:

// Purpose: via node platform to access another system from my company
// This is the project url to get web service, already working on soapUI
var url = "https://w3(intranet-link)/webservices/ws_GetUserData.wss?wsdl";
var args = {
  msg:"connecting!"
};
//define project access
var userid='';
var password='';

soap.createClientAsync(url).then((client) => {
  //add project access to logon to url
  client.setSecurity(new soap.BasicAuthSecurity(userid, password));
  return client.MyFunctionAsync(args);
}).then((result) => {
  console.log(result);
});

如何解决此问题?谢谢!

0 个答案:

没有答案