const soap = require('soap');
const url = 'http://www.dneonline.com/calculator.asmx?WSDL';
soap.createClient(url, function(err, client) {
if (err) {
console.error(err);
return;
}
const args = {intA: 10, intB: 20};
client.Add(args, function(err, result) {
if (err) {
console.error(err);
return;
}
console.log(result.AddResult);
});
});
No comments:
Post a Comment