Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:45:18+00:00 2026-05-29T16:45:18+00:00

i am developing an android application to get a list of class from wevservice

  • 0

i am developing an android application to get a list of class from wevservice

the method of webservice is like List<mytable> GetAllmytableData(); But i cant cast that data in my mytable class. i create a mytable class as http://seesharpgears.blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html this link suggested.
also applied kvm serialization in myclass to cast data. but always getting getting java.lang.ClassCastException: org.ksoap2.serialization.SoapObject error.

Data i getting in soapenvelope is like

anyType{DisplayName=a; Email=hi@y.com; FirstName=a; LastChangedDate=2/5/2012 11:24:38 PM; LastName=a; ObserverID=1; UserID=1; }
anyType{DisplayName=b; Email=hi@y.com; FirstName=b; LastChangedDate=2/5/2012 11:25:52 PM; LastName=b; ObserverID=1; UserID=2; }
 anyType{DisplayName=c; Email=hi@y.com; FirstName=c; LastChangedDate=2/6/2012 9:10:44 AM; LastName=c; ObserverID=3; UserID=3; }

how i can parse and put in my “mytable” class’s object array,

any suggestion on link plz provided

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:45:19+00:00Added an answer on May 29, 2026 at 4:45 pm

    Kishor, this is a multi dimensional array take the first one:

    anyType//property 0 
    {
     DisplayName=a; // property 0 [0]
     Email=hi@y.com; // property 0 [1]
     FirstName=a; // property 0 [2]
     LastChangedDate=2/5/2012 11:24:38 PM; //etc...
     LastName=a; 
     ObserverID=1;
     UserID=1; 
    }
    

    you can get each property manually like that:

    SoapObject yourResponseObject = (SoapObject) soapEnvelope.bodyIn;
    SoapObject array = (SoapObject) yourResponseObject .getProperty(0);// this is -->anyType //property 0           
    
    SoapObject DisplayName= (SoapObject)array .getProperty(0);// this is--> //   property 0 [0]  ;
    SoapObject Email= (SoapObject)array .getProperty(1);// this is--> //   property 0 [1]  ;
    

    etc…
    also if you want check my answer here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a walkie-talkie application for Android, and would like to know whether
I am developing an android application that receives data about events from a server.
I'm developing an Android application that I'd like to be compatible with 1.5 (SDK
I am currently developing an android application and required to get the browser version.
I am developing an android application in which I have passed a string from
I am developing an android application in which I want to get UDID of
Hi I am developing a android application to show the digital clock.But I need
I am developing an android application in which I am populating a spinner from
We are developing an Android Application to download files from Google Doc.We were able
I'm developing an android application using GPS. I'd like to implement a feature that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.