As avtorizirovatsya SOAP?

Need to pull data from third party SOAP resource. In the browser go to the link, there is a PROMT I enter username/password and go. In the code, nothing seems to work. Use soap.
My code:
var soap = require('soap');
var url = '';
 soap.createClient(url, args, function(err, client) {
 client.setSecurity(new soap.BasicAuthSecurity('SuperLogin', 'SuperPassword'));

Run and get this:
Error: Invalid WSDL URL:
Code: 401

And immediately after that:
TypeError: Cannot read property 'setSecurity' of undefined

I mean, I wrote a 401 before I point authorization. I avtorizirovatsya then?
June 14th 19 at 18:01
1 answer
June 14th 19 at 18:03
most likely there is Basic authorization.
The easiest way to do so
var url = 'http://user:password@';


as a parameter for the method `soap.createClient` you can pass options with the property `wsdl_options`. I suspect that this option for a module request to request to download the wsdl.

Find more questions by tags Express.jsNode.jsSOAP