DataSets In A Web Service?

4

47computers

I seem to have run across an odd problem, maybe someone here can help.
I have some web services written with Visual Studio running on a web
server and a client program written with Visual Studio accessing them.

A web service function I'm trying to write now takes as an argument a
DataSet object. But, no matter what I do, as long as it's expecting a
DataSet then the client always gets the error "Could not deserialize
soap message." All the other functions, including the ones that return
DataSets, work fine. But if the function takes a DataSet as an
argument, I always get that error and the code within the function is
not executed.

Now, the web server itself is not Microsoft. It's running Apache with
mod_mono for the .NET code. So, my question is... is this a known
issue with a DataSet's XML or something, that doesn't work for a
reason? Or, _should_ this work and my problem is likely with the Mono
software?

Any help would be much appreciated, thank you.


-David
 
G

Guest

Hi David,

You should be able to throw up a dataset to a webservice no problem (i.e.
have a dataset as an input parameter to a webservice). We do it constantly
with no errors. In fact it's a critical component of having this type of
N-tier system working.

It sounds to me like the MONO software is not translating the dataset
correctly so the webservice can receive it as a valid parameter.

We're not using MONO - we have the full round trip (i.e. client to
webservice and vice versa) all in .NET and it works effectively,
consistently, and well.

So really I am only answering part of your question. In other words - YES -
you definitely can (and actually need to) send up a dataset as an input
parameter to a webservice.

As far as the MONO issue goes - I can't be of any more help here.

Good luck!
 

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

Top