473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DataSets In A Web Service?

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

Sep 19 '06 #1
1 1183

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!

--
Franklin M. Gauer III
Applications Development Manager
Integrated Companies, Inc.
"47*********@gmail.com" wrote:
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

Sep 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tonidapogi | last post by:
Hi! I'm having problems in updating my client database using web service. When I merge datasets (1 from the client and 1 from the web service), and try to update the client database by using the...
7
by: Mark | last post by:
I built the example application outlined in this artical: http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dnservice/html/service02112003.asp There were a number of questions...
0
by: Bj?rn Mor?n | last post by:
I am consuming a web service that returns arrays of classes which can contain other classes (a hierarchy of data). Is there a simple way to move the data into a typed DataSet without writing too...
0
by: Sanjay | last post by:
I have a question whose answer will help me save a lot of time in investigation and implementation. Becuase we have a mix of platforms (Windows/Unix etc) in our environment I would like to...
11
by: Peter M. | last post by:
Hi all, I'm currently designing an n-tier application and have some doubts about my design. I have created a Data Access layer which connects to the database (SQL Server) and performs Select,...
2
by: Francisco Garcia | last post by:
Hi! I have developed both a Web Service and a client application, and they work fine. All classes used in the Web Service interface are declared in an assembly named Entities, that is...
3
by: Mike | last post by:
Hi, I'm delevloping a webservice that returns typed datasets with visual studio 2005. The problem is, that the typed data set in the client app is not the same as in the webservice. If I change...
25
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
1
by: Mark Baldwin | last post by:
Steven Thanks for your reply, however the typed datasets are defined in the web service and there seems to way to open the partial class code window - double clicking on the design surface does...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.