Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

multiple web services single dataset

Can multiple web services read and update a single dataset? If so how?

Roger

Roger White
Monday, December 06, 2004

Depends on how you define "single dataset."

Data to web services is copied. So you could define a web service interface as taking a dataset as a parameter, add stuff to the dataset, and then send the resulting dataset back to the client. This results in potentially a lot of extra data sloshing back and forth over the network.

Another option, if the dataset in question is just being returned, is to return a new dataset from the web service, then do a DataSet.Merge call back on the client to pull the information together.

Personally, I wouldn't use DataSets at all in web service interfaces, but that's a dead horse I don't really want to beat again.

Chris Tavares
Thursday, December 09, 2004

*  Recent Topics

*  Fog Creek Home