Returning an ArrayList from a Web Service Method

  • Thread starter Thread starter Ed.
  • Start date Start date
E

Ed.

I have an ArrayList of objects of class C. I need to return the list via a
web method. What's the best approach? If I convert the list into a DataSet
I could return the DataSet, but how would I do that? Do I need to create a
strongly typed DataSet from my class C?

Thanks.
 
I have an ArrayList of objects of class C. I need to return the list via a
web method. What's the best approach? If I convert the list into a DataSet
I could return the DataSet, but how would I do that? Do I need to create a
strongly typed DataSet from my class C?

The problem I see is that you're returning an ArrayList (.NET only) or
class C object (.NET only) from a webservice. The means your clients
will *have* to be .NET enabled in order to make sense of the output.

If .NET is going to be on the server and the client, you'll get better
performance with .NET remoting.
 
Back
Top