Monday, 17 April 2017

Nodejs SOAP client and array as argument

Im using soap module as client, and i need to pass an array as one of the arguments, but im getting error on the server side.

var args = {
   arg1: 1,
   arg2: 2,
   arrayArg:[1,2,3]
}

and

client.doGetPostBuyData(args,function(err,result){});

and it gives an namespacing error in arrayArg

Character content other than whitespace is not allowed because the content type is \'element-only\



via Rafał Michałuszek

No comments:

Post a Comment