title: How to add namespace attribute to ksoap envelope?
body: <p>I need to add an attribute (xmlns:n0="urn:checkOTP") to the envelope generated by ksoap2 (Android version).</p>
  
  <pre><code>&lt;v:Envelope
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:d="http://www.w3.org/2001/XMLSchema"
    xmlns:c="http://www.w3.org/2003/05/soap-encoding"
    xmlns:v="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;v:Header&gt;
    ...
  &lt;/v:Envelope&gt;
  </code></pre>
  
  <p>Turn to </p>
  
  <pre><code>&lt;v:Envelope
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:d="http://www.w3.org/2001/XMLSchema"
    xmlns:c="http://www.w3.org/2003/05/soap-encoding"
    xmlns:v="http://www.w3.org/2003/05/soap-envelope"
    xmlns:n0="urn:checkOTP"&gt;
    &lt;v:Header&gt;
     ...
    &lt;/v:Envelope&gt;
  </code></pre>
  
  <p>the error code is:</p>
  
  <pre><code>W/System.err(858): Code: SOAP-ENV:Sender, Reason: Method 'checkOtp' not implemented: method name or namespace not recognized
  </code></pre>
  
  <p>The server is a gSOAP2 one, and work perfectly if "xmlns:n0="urn:checkOTP" is added in the header (tested with javascript).</p>
  
  <p>Best regards.</p>