Search code examples
androidksoap2

How to parse a complex object with ksoap?


I use ksoap to connect to a soap web service. And get a Soapobject in return. How would I parse this complex soapobject.

My problem is that a SoapObject returns an object for getProperty, this can be a leaf or a node in the tree. I have a complex resultobject that consists of some ints and strings and a list of complex objects. I now somehow have to decide if the property is a leaf or another complex object that can be parsed as an SoapObject.

Is there an example on how to parse this?


Solution

  • You could find this tutorial useful on handling complex objects in KSOAP with Android:

    Complex objects tutorial with sample code

    Hope this helps