Hi Peter,
From your description, what you want to do is implement an async pattern
for calling a long run webservice method from an ASP.NET web application.
Yes, I think the pattern you mentioned is workable. Your current idea is
make the async processing tracking (and status management) at the
webservice side. the client calling web application will pull the status
and result by keep calling webmethod from that webservice, correct?
Here is an MSDN article mentioned another pattern for processing such
long-run task in async mode:
#How To: Submit and Poll for Long-Running Tasks
http://msdn2.microsoft.com/en-us/library/ms979200.aspx
the idea in it is put all the async call and status polling(and management)
at client calliing side(asp.net application). You use the auto-generated
async webmethod (beginXXX and endXXX) to call the webservice asynchornouly
and use the callback handler to update status table. Also, you need a
polling page to constantly poll the status table to check whether a certain
task has finished. The advantage here is that it doesn't require your
server-side webservice to change much.
BTW, since your webservice execute long-run task, you may need to adjust
the timeout setting (for both server-side ASP.NET webservice application)
and the client-side webservice proxy so as to avoid timeout exception. Here
is a former thread where I've mentioned the related timeout settings:
#Timeout Calling Web Service
http://bytes.com/forum/thread425416.html
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Peter" <czupet@nospam.nospam>
>References: <#R0vrsKpIHA.4928@TK2MSFTNGP04.phx.gbl>
<ROudnUcVUMSs2ZPVnZ2dneKdnZydnZ2d@bt.com>
>Subject: Re: Web Page & WebService Threading Example
>Date: Tue, 22 Apr 2008 15:43:28 -0500
[quoted text clipped - 33 lines]
>>>
>>> Peter
Peter - 23 Apr 2008 04:45 GMT
Thank you very much!
Looks like the articles you provided is what I was looking for.
> Hi Peter,
>
[quoted text clipped - 108 lines]
>>>>
>>>> Peter