Ksoap on android— get a list response from a java web service?

The problem was that when I parse the soap response I got only the first object of the list so I changer this line.

The problem was that when I parse the soap response I got only the first object of the list so I changer this line : SoapObject result = (SoapObject)envelope.getResponse(); with : SoapObject result = (SoapObject)envelope. BodyIn; wiht that I got all the list and I add this testValues = new Stringresult. GetPropertyCount(); for(int i= 0; iGetPropertyCount(); i++){ testValuesi = result.

GetProperty(i).toString(); } Good luck and thank you Janusz.

The result is a single SoapObject this objects however should have a property for every item in the list that you requested. You could do something like this to retrieve all the items: private static List parseLists(List listItems, SoapObject response) { int propertyCount = response. GetPropertyCount(); for (int currentProperty = 0; currentProperty GetProperty(currentProperty); Object result = parseObject(input.toString()); if (result!

= null) { listItems. Add(result); } } return listItems; }.

Thank you for answering i'll try to give more details : Am expecting something like this from my web service {{"id1";"year";"title"};{"id2";"year";"title"}} but in my soapObject I got : {"id1";"year";"titl"} I would like to retrieve the list of the objects – Hamzus Dec 11 '10 at 17:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send