Groups | Blog | Home
all groups > asp.net webservices > june 2005 >

asp.net webservices : Simple(?) web service



Saverio Tedeschi
6/20/2005 12:00:00 AM
Hi,
if ws returns a DataSet, from client's perpective, IT IS THE DataSet itself,
so treat it as ds, retrieving rows, fields and whatever you do with a ds,
icluded being DataSource for whatever control. However, AFAIK, each call to
DS means a call to WebService; so I create my own ds in the client app,
serialize webservice (writing XML) and then load my local ds (reading XML)
and every subsequent op is done via this local ds. Does this make sense?

"VK" <vk@vk.com> ha scritto nel messaggio
news:O5HsyXcdFHA.3932@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

VK
6/20/2005 11:29:07 AM
Hello:

I have written a simple web service which just is NOT deploying to
client.

The web service is an sp, and ws returns a data set.

On the client project, I have added a reference to this web service. How
to retrieve this dataset set into the client project? I have set up a
datagrid but the nothing seems to work.

Thanks for your help in advance.

Vani

Chad Z. Hower aka Kudzu
6/21/2005 12:00:00 AM
"Saverio Tedeschi" <tesis@tesis.org> wrote in
news:uFh#PbedFHA.2128@TK2MSFTNGP15.phx.gbl:
[quoted text, click to view]

No. The DS is serialized, sent across and a local instance created. Any calls to the dataset are
local.

[quoted text, click to view]

You are just copying and taking a lot more code to do what webservices already do for you.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Saverio Tedeschi
6/21/2005 12:00:00 AM
Thanks, Kudzu, 4 your reply.
Actually, I need explicit serialization in case clients can't get connected,
so they can inquiry previous result sets. However, now I reload ds only if
disconnected, and all goes much faster. Have a nice day!

"Chad Z. Hower aka Kudzu" <cpub@hower.org> ha scritto nel messaggio
news:Xns967C87884FC1Acpubhowerorg@127.0.0.1...
[quoted text, click to view]

Chad Z. Hower aka Kudzu
6/21/2005 12:00:00 AM
"Saverio Tedeschi" <tesis@tesis.org> wrote in
news:u#oGGpldFHA.3376@TK2MSFTNGP10.phx.gbl:
[quoted text, click to view]

Even then you can tell the datasets to serialize on their own. There are some really easy examples
here:
http://tinyurl.com/cbbg2


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Saverio Tedeschi
6/21/2005 7:27:41 PM
Thank you, Kudzu, for your advice;
however, I wasn't able to find a ref; where should I search in?

"Chad Z. Hower aka Kudzu" <cpub@hower.org> ha scritto nel messaggio
news:Xns967CA9A1ED6Ecpubhowerorg@127.0.0.1...
[quoted text, click to view]

Chad Z. Hower aka Kudzu
6/21/2005 9:29:43 PM
"Saverio Tedeschi" <tesis@tesis.org> wrote in
news:e3yNJaodFHA.3620@TK2MSFTNGP09.phx.gbl:
[quoted text, click to view]

See the parts where it saves the datasets, etc... You can download the projects and play with them
too. It puts htem in a file, but you can do same to a stream.

http://tinyurl.com/cbbg2


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

AddThis Social Bookmark Button