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 = 'http://192.168.1.1/ws/test.1cws?wsdl';
 soap.createClient(url, args, function(err, client) {
console.log(err)
 client.setSecurity(new soap.BasicAuthSecurity('SuperLogin', 'SuperPassword'));
 });


Run and get this:
Error: Invalid WSDL URL: http://192.168.1.1/ws/test.1cws?wsdl
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
Solution
most likely there is Basic authorization.
The easiest way to do so
var url = 'http://user:password@192.168.1.1/ws/test.1cws?wsdl';


UPD.

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