Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Service Design Question
Message
From
13/03/2008 00:46:23
 
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01299582
Message ID:
01301650
Views:
16
>Now what about something like inserting a record? Some table could have beaucoup fields which would mean just as
>many params.
>
>Maybe create a client side data set, add the data to it, convert it to XML and pass that to the WS?


Here's what we do. We use DataSets for everything. Not everyone will agree with this methodology ... plenty of people like to pass around business objects. Our philosophy is that our DataSets are similar to "business" objects, because we can add extra functionality to any DataSet if we want to.

So, anyway, yes ... we use the same DataSets on the front-end and the back-end (same DataSet DLLs). And we use XML to pass the data from those DataSets to/from the WS methods.

So, that means that yes, we pass the data as XML as a parameter of a WS method rather than pass a gazillion parameters to it. Let the back-end (DataAccess layer) figure out what parameters it needs to create to Save the data. You don't want to stick your WS methods with a gazillion parameters (which will change everytime you add new columns to your tables). Nope, not a good idea!

You are *definitely* on the right track! =0)

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform