all groups > dotnet web services > march 2005 >
You're in the

dotnet web services

group:

have webservice continue processing even after it returns data to consumer


have webservice continue processing even after it returns data to consumer thomasamillergoogle NO[at]SPAM yahoo.com
3/31/2005 7:32:52 PM
dotnet web services: I would like to have a web service continue a little bit of processsing
after it returns the data to the consumer. What is the proper way to do
this? Please provide an bit of example code on how to do this. For
example:

[WebMethod]
public string HelloWorld()
{
//creat a thread or asynch or ? that will continue processing even
after the method returns "hello world". the asynch will not have to
retrun anything to the consumer. It will just need to update a database
or something like that.

return "Hello World";
}
Re: have webservice continue processing even after it returns data to consumer thomasamillergoogle NO[at]SPAM yahoo.com
4/6/2005 6:44:50 PM
So there is no way to do this?
Re: have webservice continue processing even after it returns data to consumer William Stacey [MVP]
4/6/2005 9:55:53 PM
Start a new thread or one on the ThreadPool and return. The thread will
keep running I believe. Try it.

--
William Stacey, MVP
http://mvp.support.microsoft.com

[quoted text, click to view]
AddThis Social Bookmark Button