I am just getting started with NodeJS and I digging into talking to a SOAP service using milewise's node-soap. I am using a basic email address validation SOAP API as my test case.
I don't seem to understand the correct way to format my arguments lists.
My SOAP client code:
var url = http://www.restfulwebservices.net/wcf/EmailValidationService.svc?wsdl;
soap.createClient(url, function(err, client){
console.log(client.describe().EmailValidationService.BasicHttpBinding_IEmailValidationService.Validate);
client.Validate({result:[email protected]}, function(err, result){
console.log(result);
});
});
The client.describe() command tells me how the API would like its input formatted, and how it will return its output. This is what is says:
{ input: { 'request[]': 'xs:string' },
output: { 'ValidateResult[]': 'xs:boolean' } }
However when I send the arguments as an object: {request:[email protected]}
I feel like my problems lies in how I am defining the arguments object...what do the brackets in request[]
mean?