Getting soap response that contains multiple arrays in android
<p>My web service returns multiple arrays in a List. this list contains three arrays in it. how to get these arrays in arrays defined in android. I want to convert soap response to a list which contains three arrays to hold the arrays returned by web service. how can i do this? any suggestions?
this is my code:</p>

<pre><code>     SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
   request.addProperty("location",location);

   SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
   envelope.dotNet = true; // put this only if the web service is .NET one
   envelope.setOutputSoapObject(request);
  HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
  androidHttpTransport.call(SOAP_ACTION, envelope);


    try{
    androidHttpTransport.call(SOAP_ACTION, envelope);

     SoapObject response = (SoapObject)envelope.getResponse();


     int count = response.getPropertyCount();;
      ArrayList&lt;String&gt; resname = new ArrayList&lt;String&gt;(); 
      ArrayList&lt;String&gt; resloc = new ArrayList&lt;String&gt;(); 
      ArrayList&lt;String&gt; resid = new ArrayList&lt;String&gt;(); 
      for (int i = 0; i &lt; count; i++)
       {
///here first array returns data to be stored in resname for i=0. but for the next iteration i have to add data to resloc and for third iteration i.e i=2, i have to store data in resid. how to do this?    
SoapObject soapresults = (SoapObject)response.getProperty(i);

resname.add(soapresults.getPropertyAsString(i));

      }
</code></pre>
