J
JR
Hi,
I have a question about the best method to return sql records through a web
service.
I will potentially be sending back anywhere from one to a thousand records
from a sql call through a webmethod. I would like some advice on the "Best"
way to send the data to the client. Right now I am filling a dataset from
the sql call, writing the xml to an xmlwriter object, then converting that
to a string which I then return to the client.
Would it be better to send back a collection or custom object or is there
another approach that I'm missing? I would like to keep this as scalable as
possible so I would like to avoid using datasets and such.
Thanks in advance,
Jamie
I have a question about the best method to return sql records through a web
service.
I will potentially be sending back anywhere from one to a thousand records
from a sql call through a webmethod. I would like some advice on the "Best"
way to send the data to the client. Right now I am filling a dataset from
the sql call, writing the xml to an xmlwriter object, then converting that
to a string which I then return to the client.
Would it be better to send back a collection or custom object or is there
another approach that I'm missing? I would like to keep this as scalable as
possible so I would like to avoid using datasets and such.
Thanks in advance,
Jamie