Question

  Asked: Feb 1 2008   5:27 AM GMT
  Asked by: M4atiq


Passing DataTable to Web Service Function


WebServices, Database

Hi!
I have fetched out data into datatable from source database and want to pass this datatable into my webservice function. so that webservice function could insert data into destination database.
any help will be highly appreciated.

m4atiq.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Grappling with similar problems for Web Services under ASP.NET 2.0x

The issue is which objects can be "serialzed" so they go thru Web Services.

The dataset is a sure bet. Web Services can pass datasets between themselves and/or client applications (Windows Forms clients or Web Site clients).
The dataset can have zero or more data tables. Your SP can populate the dataset table when you execute the SP as part of the data adapter FILL method. Simply pass the dataset back with or without processing the table data.

For the time being, I am unable to pass a SQLCommand object thru Web Services.
This worked in the previous .Net Framework ... but for some reason it "fails" to serialize under 2.0x
Will ask this question in a separate thread.

Good Luck
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development and Database.

Looking for relevant Development Whitepapers? Visit the SearchSQLServer.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register