By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,163 Members | 1,275 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,163 IT Pros & Developers. It's quick & easy.

Returning an ArrayList from a Web Service Method

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <dI5ab.488789$Ho3.82333@sccrnsc03>,
ed************@comcast.net says...
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.

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.