web service return dataset

J

jamesd

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.
 
M

Martin Kulov [MVP]

jamesd said:
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...

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top