Skip to content

Instantly share code, notes, and snippets.

@jason-dark
Created July 20, 2018 22:31
Show Gist options
  • Save jason-dark/ca20825b2f7c9a4cd902ac4e231d4d68 to your computer and use it in GitHub Desktop.
Save jason-dark/ca20825b2f7c9a4cd902ac4e231d4d68 to your computer and use it in GitHub Desktop.
var soap = require('soap');
var url = '/home/user/your-project/xmlfaz.wsdl';
var args = {
_xml:
'<r20:runFazReport>' +
'<servicePass>' +
'<userID>apiuser@domain.com</userID>' +
'<password>apiuserpassword</password>' +
'</servicePass>' +
'<adom>root</adom>' +
'<reportTemplate>Template -Top 20 Categories and Applications (Session)</reportTemplate>' +
'</r20:runFazReport>'
};
soap.createClient(url, function (err, client) {
if (err) console.error(err);
client.runFazReport(args, function (err, result) {
if (err) console.error(err);
console.log(result); // Print the result
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment