title: Binding nested complex objects with KSOAP2 Android
body: <p>I'm trying to bind a XML response from a WS to a set of POJO's classes using ksoap2-android.<br />
  A lot of examples on the internet treat very simple responses <a href="http://seesharpgears.blogspot.fr/2010/10/ksoap-android-web-service-tutorial-with.html" rel="nofollow">like this one</a>.
  <br />In my case however, I have a lot of custom classes and they keep a reference of each other, sometimes even inside an arraylist.</p>
  
  <p>Here's what i'm trying to do, i would like to bind this kind of response :</p>
  
  <pre><code>&lt;Car number="35"&gt;
      &lt;Engine&gt;
          [...]
      &lt;/Engine&gt;
      &lt;Passenger id="1"&gt;
          [...]
      &lt;/Passenger&gt;
      &lt;Passenger id="2"&gt;
          [...]
      &lt;/Passenger&gt;
  &lt;/Car&gt;
  </code></pre>
  
  <p>To this kind of class :</p>
  
  <pre><code>public class Car {
  
      private int number;
      private Engine engine;
      private ArrayList&lt;Passenger&gt; passengers;
  
  }
  </code></pre>
  
  <p>With, if possible, only modifying POJOs files (the Simple XML annotations system is very elegant, too bad there's no equivalent to this in ksoap).</p>
  
  <p>I looked into the KVMSerializable interface, but when I try to override the getPropertyInfo() method, I have no idea of what I should return in the PropertyInfo.type and how will ksoap handle ArrayLists.</p>
  
  <p>I got a huge headache right now, please help me</p>