Arrays in node-soap

I'm attemping to leverage node-soap to make a SOAP request containing an array. Requests without arrays seem to work fine however when attempting to pass an array I'm receiving the error 'not an ARRAY reference' from the server.

Any idea? My script is as follows:

var soap = require('soap');

var url = 'http://example.com/example.wsdl';

var args = {
    email: 'example',
    password: 'xxxxx',
    series: {
        element: ['a', 'b', 'c', 'd']
    }
};

soap.createClient(url, function(err, client) {
    if(err) throw err;

    client.ExampleMethod(args, function(err, result) {
        if(err) throw err;
        console.log(result);
    });
});

No idea what the code you're calling is supposed to do, but just guessing from the name "series", are you sure that a thing called "series" is supposed to contain an array named "element", rather than be the array?

try

series:{
          element: [{'a','b','c','d'}]
}

This is currently being discussed over at the GitHub repository (issue #143).

tldr; The collaborators are trying to determine how they should convert JSON to XML. Which relates to issue #368.