Sounds like an excellent candidate for an Asynchronous web service. On the
generated proxy for the web service, you can call the 'BeginInvoke' method
which will immediately return from the call. Part of the call is the passing
of a return method that is called when the web service is complete. If at
some later point, you want to wait, you can call the 'EndInvoke' to
sybchronously wait for the end of the service. A couple of hours is a huge
time to wait though and it would be best to handle this asynchronously
rather than doing any waiting on the end of the call.
Here is a couple of links
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/h
tml/service09032002.asp
http://www.codeproject.com/cs/webservices/webservicecallback.asp
--
- Paul Glavich
Microsoft MVP - ASP.NET
> I'm sorry if this has been posted twice. I checked and don't see the
> original in the newsgroup.
[quoted text clipped - 9 lines]
>
> Thanks
Paul, thank you for the prompt reply.
We currently are executing the WS call asynchronously. However, I'm
concerned that ASP.Net will cancel the process as it 'thinks' the
process froze due to it taking so long to execute.
Is this a concern? How would I deal with it?
Thanks
> Sounds like an excellent candidate for an Asynchronous web service. On the
> generated proxy for the web service, you can call the 'BeginInvoke' method
[quoted text clipped - 10 lines]
> tml/service09032002.asp
> http://www.codeproject.com/cs/webservices/webservicecallback.asp
Paul Glavich [MVP - ASP.NET] - 02 May 2004 13:46 GMT
To be honest, I am not 100% sure, although as long as the framework can
"ping" the request and see its still alive, it should not kill it. Mind you,
check the <processModel> settings in your machine.config to see if you will
need to tweak some of the settings in there.
It might be worth sending this kind of request to a message queue, where a
service can simply pick off the message and execute what is required. The
service can simply execute a web service that calls whatever is required to
notify that the process is complete.
--
- Paul Glavich
Microsoft MVP - ASP.NET
> Paul, thank you for the prompt reply.
>
[quoted text clipped - 16 lines]
> >
> > Here is a couple of links
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/h
> > tml/service09032002.asp
> > http://www.codeproject.com/cs/webservices/webservicecallback.asp