PC Review


Reply
Thread Tools Rate Thread

Creating a dataset

 
 
Peter Morris [Droopy eyes software]
Guest
Posts: n/a
 
      18th Feb 2005
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/
 
Reply With Quote
 
 
 
 
Sahil Malik
Guest
Posts: n/a
 
      19th Feb 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...books&n=507846

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


"Peter Morris [Droopy eyes software]" <(E-Mail Removed)>
wrote in message news:(E-Mail Removed)...
> 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/



 
Reply With Quote
 
=?Utf-8?B?Qm9ubmllIEJlcmVudCBbQyMgTVZQXQ==?=
Guest
Posts: n/a
 
      20th Feb 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/
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a dataset? TonyJ Microsoft C# .NET 2 23rd Oct 2007 05:13 PM
creating a dataset from existing dataset =?Utf-8?B?QWxleCBTIE1vb3Jl?= Microsoft ADO .NET 0 26th Sep 2005 05:30 PM
creating a new dataset brian kaufmann Microsoft Excel Programming 0 16th Aug 2004 08:47 PM
Creating a Dataset =?Utf-8?B?VGhvbWFzIFJpdHRlcg==?= Microsoft Dot NET 1 9th Apr 2004 10:06 AM
Creating a view in a DataSet Gerald Zukrigl Microsoft Dot NET Framework 1 5th Sep 2003 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:37 PM.