Hi there,
Well, I can comment on this, based on my own experience. First and
foremost, I do not consider web services as a .NET spesific technology.
I use them a lot, usually for .net and j2ee integration, and when .net
is on the server side, using datasets for exposing data over web
services means trouble. Since the clients of .net web services are
different java soap stacks ranging from apache axis to ksoap(mobile
devices like cell phones, pdas etc), the more complicated the object
transferred over the wire, the more serialization and deserialization
issues appear in the clients. Plain data objects are much more suitable
for cross platform web services use.
DataSet feels a little too "bulk" to me, it sometimes looks like a
message that says, "hey, I did not have time to implement any business
logic behind this interface, so take this big chunk of data, and do
whatever you want, I'm busy". I am aware that this is not a very strong
argument, but I find myself usually uncomfortable when dealing with a
dataset in the client. I'd rather have my clients have more lightweight
structures to deal with.
I usually prefer to have a layer of dummy objects which work between the
business logic and db, which can be easily serialized over web services.
They tend to be small, efficient, and they can be used for other
distributed scenarios like remoting(binary or http).
Other than the cross platform scenario, I think I can get away with
datasets over web services, but still they don't feel right. I'd like to
hear other comments though.
Best Regards
Seref Arikan
Chris Wuestefeld wrote:
Don:
DATASETS over Web Service = Very Bad
Shawn:
Don is EXACTLY correct
Since this is the architecture of one of our most important apps (and it's
working quite well), I'm interested in the reasoning behind this. Does
anyone have pointers to articles?
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.13.1/466 - Release Date: 10/7/2006
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com