Have you considered the use of .NET serviced components? .NET has a built-in
mechanism for invoking a method call on an object: using a delegate
asynchronously. The client creates a delegate class that wraps the method it
wants to invoke synchronously, and the compiler provides definition and
implementation for a BeginInvoke( ) method, which asynchronously calls the
required method on the object. The compiler also generates the EndInvoke( )
method to allow the client to poll for the method completion. Additionally,
.NET provides a helper class called AsyncCallback to manage asynchronous
callbacks from the object once the call is done.
Your webmethod could then call this serviced component instead of performing
the long-running process itself.
"eSapient" <eSap...@Yahoo.Com> wrote in message
news:eWud8eZM...@tk2msftngp13.phx.gbl...