Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 26th, 2005, 02:19 PM
Registered User
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default dataset from the client to the server

How do I pass the dataset from the client to the server through the webservice ?

Any help would be appreciated.
Old May 26th, 2005, 08:33 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts

With a property on the web service... Pass the dataset to the webservice by setting the property to it.. then run an execute on the web service... You could, also, pass it in the constructor if you just want to send a dataset and have it proccess.

I should add- the second option is MUCH easier-- since you don't need to worry about state...

Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
Old June 1st, 2005, 10:17 AM
Authorized User
Join Date: May 2004
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post

I'd add to what Hal Levy said. Besides using a property or constructor, you can also pass a DataSet object to a method when calling it.

Using a constructor makes more sense if you're going to preserve the DataSet for some time and process it in several methods on your Web Service. A method, on the other hand, is preferable if you're going to process the DataSet in that specific method and then discard it.

I hope it'd be helpful.


Old June 1st, 2005, 11:37 AM
Registered User
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks ejan and Hal for your input. Got it to work now.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving DataSet data on client machine in .csv file balesh ASP.NET 1.0 and 1.1 Professional 0 October 25th, 2006 06:17 AM
How to update DataSet with XML from Web Client? kfinkfin ADO.NET 9 February 14th, 2006 07:12 PM
Client-Server Ioan Access VBA 3 April 11th, 2005 06:23 AM
DLLs on server pulling server time or client? mussitsch Classic ASP Professional 1 March 1st, 2005 05:38 AM
Re: SQL Server dataset to ACCESS dataset dazzer ADO.NET 0 March 22nd, 2004 05:28 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.