title: Send a request with arrays in Node-soap (node.js)
body: <p>I am communicating to a web service using nodejs and node-soap. But i just can't seem to get the syntax right for passing the parameters to the service.</p>
  
  <p>The documentation says i need to send an array with the field uuid and its value.</p>
  
  <p>Here is the Php code i got as an example from the web service owner</p>
  
  <pre><code>$uuid = "xxxx";
  
      $param = array("uuid"=&gt;new SoapVar($uuid,
      XSD_STRING,
      "string", "http://www.w3.org/2001/XMLSchema")
      )
  </code></pre>
  
  <p>and here is the code i am using in my node server</p>
  
  <pre><code> function getSoapResponse()
  {
      var soap = require('soap');
        var url = 'http://live.pagoagil.net/soapserver?wsdl';
        var auth = [{'uuid': 'XXXXXXXXX'}];
  
        soap.createClient(url, function(err, client) {
        client.ListaBancosPSE(auth, function(err, result) 
        {
            console.log(result);
            console.log(err);
        });
    });
  </code></pre>
  
  <p>With this i get bad xml error</p>
  
  <pre><code>var auth = [{'uuid': 'XXXXXXXXX'}];
  </code></pre>
  
  <p>or </p>
  
  <pre><code>var auth = [["uuid",key1],XSD_STRING,"string","http://www.w3.org/2001/XMLSchema"];
  </code></pre>
  
  <p>and with this i get the response "the user id is empty" (the uuid)</p>
  
  <pre><code> var auth = {'uuid': 'XXXXXXXXX'};
  </code></pre>
  
  <p>Any suggestions?</p>