Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2005, 02:19 PM
Registered User
 
Join Date: May 2005
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old May 26th, 2005, 08:33 PM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
Reply With Quote
  #3 (permalink)  
Old June 1st, 2005, 10:17 AM
Authorized User
 
Join Date: May 2004
Location: Karachi, Sindh, Pakistan.
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.

Regards,

ejan
Reply With Quote
  #4 (permalink)  
Old June 1st, 2005, 11:37 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:51 PM.


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