I am trying to use a .Net webservice. The function at web service connects database and returns a dataset, not an array. (For example 100 complex data row, I mean: 100 rows ID, student name, student address columns... so on..)
I called it and when I debug my code, I can see the data in my envelope within lots of vectors. But I cannot use them.
I tried to write a class which has attributes same as web service return data. But nothing changed. (Below code)
- Code: Select all
Vector<StudentClass> received = (Vector<StudentClass>)envelope.bodyIn; /*ClassCastException*/
if(received != null)
for(StudentClass curr : received )
Everytime I debug the code, I get ClassCastException error.
Any help would be great!