app.use(basicAuth({ users: { 'test': 'test123' }
})); soap.createClient(url, (err, client) => { if (err) { logger.error('Error : %s', err); return; }
client.setSecurity(new soap.BasicAuthSecurity(username, password));
client.doJob(args, function(err, result, rawResponse, soapHeader, rawRequest) {
if (err) { logger.error('Error %s', err.message);
}, {
timeout: heartbeatTimeout
} }); });
soap.createClient(url, (err, client) => { if (err) { logger.error('Error : %s', err); return; }
client.setSecurity(new soap.BasicAuthSecurity(username, password)); client.doJob(args, function(err, result, rawResponse, soapHeader, rawRequest) { if (err) { logger.error('Error %s', err.message); } else { // Since SOAP Client returns 401 as success, I need to find the http status // and act accordingly. logger.info('success'); }, }, { timeout: timeout }); });
Since SOAP Client returns 401 as success
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7d947be2-2374-4ee6-b8c3-6b42e0a31b41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.