title: KSoap2 Android Receive Array of Objects
body: <p>I am trying to use a .NET webservice in my application where the service returns an array of objects as a response.</p>
  
  <p>This is the format of the response from the web-service.</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;GetPickersResponse xmlns="http://tempuri.org/"&gt;
    &lt;GetPickersResult&gt;
      &lt;Picker&gt;
        &lt;Id&gt;int&lt;/Id&gt;
        &lt;StartTime&gt;dateTime&lt;/StartTime&gt;
        &lt;EndTime&gt;dateTime&lt;/EndTime&gt;
        &lt;PickerCount&gt;int&lt;/PickerCount&gt;
      &lt;/Picker&gt;
      &lt;Picker&gt;
        &lt;Id&gt;int&lt;/Id&gt;
        &lt;StartTime&gt;dateTime&lt;/StartTime&gt;
        &lt;EndTime&gt;dateTime&lt;/EndTime&gt;
        &lt;PickerCount&gt;int&lt;/PickerCount&gt;
      &lt;/Picker&gt;
    &lt;/GetPickersResult&gt;
  &lt;/GetPickersResponse&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>This is my Java code to get the response from the web-service.</p>
  
  <pre><code>SoapObject request = new SoapObject(NAMESPACE, METHOD_GET_CONTROL);
  SoapSerializationEnvelope envelope = 
          new SoapSerializationEnvelope(SoapEnvelope.VER11); 
      envelope.dotNet = true;
      envelope.setOutputSoapObject(request);
  
  
  HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
  
   try {
               androidHttpTransport.call(SOAP_ACTION_GET_CONTROL, envelope);
              ..........=envelope.getResponse(); //To get the data. }
  </code></pre>
  
  <p>My question, with what do I replace the "........" in my source code to receive the array of objects as a response from the service ?
  I need to receive multiple objects and then use their individual data members.</p>
  
  <p>Please help. I am new to Web-services and Ksoap.</p>