Hi all

Can anyone point me to an article or something similar which will show
me how to do the following

1) Webservice creates some object instances
2) Webservice creates some XML which looks like DataSet data
3) Client can then take the data and edit within a DataSet

The objects on the server cannot have a parameterless constructor, so I
can't make them [Serializable] (there are other reasons too). So I'd
like to have the client work with datasets instead.

Thanks


--
Pete
====
Read or write articles on just about anything
http://www.HowToDoThings.com

My blog
http://blogs.slcdug.org/petermorris/

Re: Creating a dataset by Sahil

Sahil
Sat Feb 19 02:23:25 CST 2005

My book has a very indepth explanation of WebServices and Datasets et.al.

You can get it from here -
http://www.amazon.com/exec/obidos/tg/detail/-/1590594347/qid=1108801391/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-3679404-6399316?v=glance&s=books&n=507846

- Sahil Malik
http://codebetter.com/blogs/sahil.malik/


"Peter Morris [Droopy eyes software]" <pete@not.this.or.this.droopyeyes.com>
wrote in message news:Od7qhGbFFHA.4052@TK2MSFTNGP14.phx.gbl...
> Hi all
>
> Can anyone point me to an article or something similar which will show me
> how to do the following
>
> 1) Webservice creates some object instances
> 2) Webservice creates some XML which looks like DataSet data
> 3) Client can then take the data and edit within a DataSet
>
> The objects on the server cannot have a parameterless constructor, so I
> can't make them [Serializable] (there are other reasons too). So I'd like
> to have the client work with datasets instead.
>
> Thanks
>
>
> --
> Pete
> ====
> Read or write articles on just about anything
> http://www.HowToDoThings.com
>
> My blog
> http://blogs.slcdug.org/petermorris/



RE: Creating a dataset by BonnieBerentCMVP

BonnieBerentCMVP
Sat Feb 19 23:19:01 CST 2005

Pete,

In order for your Web Service to return XML, all you have to do is return
the XML from the DataSet.GetXML() method.

Then, client-side, you'd do this:

StringReader sr = new StringReader(XML);
MyDataSet.ReadXml(sr, XmlReadMode.InferSchema);
MyDataSet.AcceptChanges();

~~Bonnie




"Peter Morris [Droopy eyes software]" wrote:

> Hi all
>
> Can anyone point me to an article or something similar which will show
> me how to do the following
>
> 1) Webservice creates some object instances
> 2) Webservice creates some XML which looks like DataSet data
> 3) Client can then take the data and edit within a DataSet
>
> The objects on the server cannot have a parameterless constructor, so I
> can't make them [Serializable] (there are other reasons too). So I'd
> like to have the client work with datasets instead.
>
> Thanks
>
>
> --
> Pete
> ====
> Read or write articles on just about anything
> http://www.HowToDoThings.com
>
> My blog
> http://blogs.slcdug.org/petermorris/
>