Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2006

Tip: Looking for answers? Try searching our database.

web service return dataset

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jamesd - 12 Apr 2006 22:20 GMT
In the past I have taken the easy way out and programmed my web
services to return a dataset. This was fine because my consumers were
guaranteed to be .net consumers, so they could easily process the .net
dataset.

Now I must build a web service that returns data to the consumer in a
more generic way, that all consumers (c++, java) can consume.

Is there a helper function anywhere to take care of this easily?

I imagine I just need helper function that will convert the datatable
to xml...

please advise.
Martin Kulov [MVP] - 12 Apr 2006 23:24 GMT
> In the past I have taken the easy way out and programmed my web
> services to return a dataset. This was fine because my consumers were
[quoted text clipped - 8 lines]
> I imagine I just need helper function that will convert the datatable
> to xml...

Hi James,

as you know Datasets are transferred over the wire in XML format so you can
look for or implement a parser that handles the xml. Dataset class has
GetXml() method that returns the raw XML.
Also you may choose to use custom objects and serialize them by applying
XmlElementAttribute and etc.

Regards,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD.NET Early Achiever


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.