I'm willing to connect to a soap service with nodejs. I looked for some modules to help me generate envelopes and soap related stuff for me. Turned out, soap module has a straight forward method for creating a soap service client. I could use this module for a couple of different services and they worked well, but I came across this one:
var soap = require('soap');
var client;
var url = "https://pgws.bpm.bankmellat.ir/pgwchannel/services/pgw?wsdl";
soap.createClient(url, function (err, client) {
console.log('Client is ready');
console.log(client.describe());
});
This snippet is not creating the expected soap client. Can anyone please give a lead? I don't know what possibliy is the problem or how can I fix it.