Created
July 20, 2018 22:31
-
-
Save jason-dark/6f254d3f4c637c528f352bdb8b82a7b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var soap = require('soap'); | |
var url = '/home/user/your-project/xmlfaz.wsdl'; | |
var args = { | |
_xml: | |
'<r20:listFazGeneratedReports>' + | |
'<servicePass>' + | |
'<userID>apiuser@domain.com</userID>' + | |
'<password>apiuserpassword</password>' + | |
'</servicePass>' + | |
'<adom>root</adom>' + | |
'<startDate>2018-01-06T00:00:00</startDate>' + | |
'<endDate>2018-18-06T00:00:00</endDate>' + | |
'</r20:listFazGeneratedReports>' | |
}; | |
soap.createClient(url, function (err, client) { | |
if (err) console.error(err); | |
client.listFazGeneratedReports(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