title: Passing string array to c# web service (Android Ksoap2)
body: <p>Hi so i've been searching google for a while and but can't seem to have a solid example for this. I've been working with webservice this past few days with android and I can succesfully pass parameters from android and consume it back with ksoap with no problems. But now I need to pass an array to a webservice. So heres my sample web service:</p>
  
  <pre><code>[WebMethod]
  public string Sample(string[] logs)
  {
      return array[0];
  }
  </code></pre>
  
  <p>And this is the XML that I need to generate:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;Sample xmlns="http://MTKAndroidService.org/"&gt;
        &lt;array&gt;
          &lt;string&gt;string&lt;/string&gt;
          &lt;string&gt;string&lt;/string&gt;
        &lt;/array&gt;
      &lt;/Sample&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I've been stuck with this for a while now and hope someone can help me.</p>