I'm trying to get the npm package soap working.
This is the function I run:
var soap = require('soap');
var url = 'http://example.com/wsdl?wsdl';
var args = {name: 'value'};
soap.createClient(url, function(err, client) {
client.MyFunction(args, function(err, result) {
console.log(result);
});
});
It complains that MyFunction is not defined:
TypeError: Cannot read property 'MyFunction' of undefined
Do I have to define a function called MyFunction at the side? If so, what parameters should it take?