I’m working on automating onboarding of a new merchant into the CreditCall system. Nigel provided me with the necessary documentation last Friday and I started on the project today.
Here is my Node code snippet:
var url = 'https://' + username + ':' + password + '@' + host + '/SOAP.asmx?wsdl';
soap.createClient(url, function(err, client) {
console.log(err);
client.setSecurity(new soap.BasicAuthSecurity(username, password));
client.CreateMerchantAccount(args, function(err, result) {
console.log(result);
console.log(err);
});
});
This gave the following error:
TypeError: Object [object Object] has no method 'CreateMerchantAccount'
So clearly there is something wrong with the client.CreateMerchantAccount() line.
So I executed client.describe() and it returned:
{
HttpServerWebService: {
HttpServerWebServiceSoap: {
Call: [ Object ],
CallNameValue: [ Object ]
},
HttpServerWebServiceSoap12: {
Call: [ Object ],
CallNameValue: [ Object ]
}
}
}
This doesn't seem to give me enough clue about what the exact call should be. Any ideas on what I'm doing wrong?
Thanks!
Which node-soap and soap version are you using?
--
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/ecf10fdc-021c-4832-9908-c723c0cb1b54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.