tags:

views:

252

answers:

3

Hi,I want to know how to parse the web service response data in android .Actually i m accessing the .net web service.I can get a result of some complex type.i want to know how to retrive a particular value from this complex type.Is there is any parser avilable to parse the content of the response or else we have to parse manually? If u have any code snippet pls bring me. regards, s.kumaran.

A: 

You should consider using the Project Tango library. I'm 80% sure you can use it in Android.

Generate a proxy from the web service and it'll give you classes for the complex types.

Randolpho
A: 

First of all - what content type you are talking about? XML and JSON are supported I believe. I've been using just plain HttpClient to get the responses

DroidIn.net
i have been talking about text/xml content.
Kumar
A: 

if you need to parse XML response, see here: http://www.helloandroid.com/node/110 it's a sample XML RSS reader

Reflog