title: How can I add "namespace" to request in node soap
body: <p>I created web service object from wsdl file and call it like in below. I also print result. this code does not work. web server returns error. because, request has not namespace. </p>
  
  <pre><code>soap.createClient(__dirname + '/wsdl/getCustomerDetails.wsdl', function(err, client) {
  .
  .
  var params=  {"custId":"123"};
  client.getCustomerDetails.getCustomerDetailsPort.getCustomerDetails(params,function(err,result){
      console.log("lastRequest:"+client.lastRequest);
      if (err != null)
          console.log("error:"+JSON.stringfy(error));
  
  });
  
  }
  </code></pre>
  
  <p>here what I see in the last request</p>
  
  <pre><code>&lt;soap:...  xmlns:tns="http://example.com/api/getCustomerDetails/V01" &gt;
  ....
    &lt;soap:Body&gt;
       &lt;getCustomerDetailsRequest&gt;
           &lt;custId&gt;123&lt;/custId&gt;
       &lt;/getCustomerDetailsRequest&gt;
    &lt;/soap:Body&gt;...
  </code></pre>
  
  <p>but it has to be </p>
  
  <pre><code>&lt;soap:...  xmlns:tns="http://example.com/api/getCustomerDetails/V01" &gt;
      ....
     &lt;soap:Body&gt;
       &lt;tns:getCustomerDetailsRequest&gt;
          &lt;tns:custId&gt;123&lt;/tns:custId&gt;
       &lt;/tns:getCustomerDetailsRequest&gt;
     &lt;/soap:Body&gt;...
  </code></pre>
  
  <p>as you see, soap module does not add <code>tns</code> namespace to the request. I tried <code>var params=  {"tns:custId":"123"};</code>, it adds namespace to the parameter, but still it does not add namespace to the request, <code>getCustomerDetailsRequest</code>. because of that, I get <code>Unexpected element getCustomerDetailsRequest found. Expected {http://example.com/api/getCustomerDetails/V01}getCustomerDetailsRequest</code>.</p>
  
  <p>how can I force to add this namespace to the method itself ?</p>