Passing record to a webmethod

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

Is it possible to pass a whole record to a webmethod? How?

Thanks

Regards
 
Hi,

depends what you are passing. Web service method could certainly take a
custom class as argument, populated with data from the "record" or array of
records.
 
Can they take a dataset as parameter?

Thanks

Teemu Keiski said:
Hi,

depends what you are passing. Web service method could certainly take a
custom class as argument, populated with data from the "record" or array
of records.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
 
Yes, they can.

Have you tried? It is a quick test, and then you don't have to ask on the
newsgroup and wait for responses.
 
OK, a real question. :)

When a webmethod gets a dataset as parameter as below, how can the webmethod
insert the dataset into a local table?

<WebMethod()> Public Sub ClearEvent(ByVal Events As Data.DataSet)

Thanks

Regards
 
This question has been asked many times, I recommend you do some research on
Google groups. The fact that this is happening through a web service is
irrelevant, it is really about how to insert a given set of rows into a
database table.
 

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

Back
Top