Re: [android-developers] Call web service that returns an object

2012-07-22 Thread Mohammed Zarqa
Thank you for your hint i got it corrected as follows SoapObject response = (SoapObject)envelope.bodyIn; SoapObject c2 = (SoapObject)response.getProperty(0); tv.setText(Category + c2.getProperty(0)); On Saturday, July 21, 2012 8:28:53 PM UTC+3, TreKing wrote: On Sat,

Re: [android-developers] Call web service that returns an object

2012-07-21 Thread Mohammed Zarqa
the returned object is a class (Category) and contains ID as integer, Name and description so what should i do to sync the category class defined in both web service and the android app. regards On Thursday, July 19, 2012 9:22:29 PM UTC+3, TreKing wrote: On Wed, Jul 18, 2012 at 9:15 AM,

Re: [android-developers] Call web service that returns an object

2012-07-21 Thread TreKing
On Sat, Jul 21, 2012 at 3:25 AM, Mohammed Zarqa mmza...@gmail.com wrote: the returned object is a class (Category) and contains ID as integer, Name and description so what should i do to sync the category class defined in both web service and the android app. Parse the data you get to

Re: [android-developers] Call web service that returns an object

2012-07-19 Thread TreKing
On Wed, Jul 18, 2012 at 9:15 AM, Mohammed Zarqa mmza...@gmail.com wrote: the error comes from this line C.CategoryId = Integer.parseInt(response.getProperty(0).toString()); and the error is java.lang.NumberFormatException: unable to parse 'anyType{CategoryId=10055; Name=my

[android-developers] Call web service that returns an object

2012-07-19 Thread Mohammed Zarqa
Hello, Firts i am new to java and android development, i am trying to call asmx web service that returns a class with three members as this example http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html but i am getting an while executing the code below the