WebService return type suggestion

  • Thread starter Srinivas R. Loka
  • Start date
S

Srinivas R. Loka

I am a newbie in this area. I want to write a web service that executes an
SQL and returns the resultset. The resultset is to be bound to a datagrid on
the receiving end.
Should I return a dataset from the web service and bind that to the Datagrid
OR
should I return the XML(using GetXML method of DataSet) string and on the
receiving end, fill a dataset and bind that to the Datagrid.
How much more data is transferred if a Dataset is returned instead of just
the resultset xml ? How can I measure the actual bytes being transferred ?

Thanks for any suggestions.

Srinivas Loka
 
C

casey chesnut

it will be the same either way.
if your return a DataSet, it will get serialized to XML automatically.
so the question is if you want the client to work with XmlDocument or
DataSet?
if you know its a .NET client, might as well make it a DataSet.
casey
http://www.brains-N-brawn.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,231
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top