Answer the question
In order to leave comments, you need to log in
How to log into SOAP?
You need to pull data from a third-party SOAP resource. In the browser I go to the link, there I promptly enter the login / password and go. It doesn't work that way in the code. I am using 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'));
});
Error: Invalid WSDL URL: http://192.168.1.1/ws/test.1cws?wsdl
Code: 401
TypeError: Cannot read property 'setSecurity' of undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question