found on blogs and CodeProject web site. I just want my implementation
to work. Can you please show me how to fix things with the sample I
Cheng[MSFT]) wrote:
>Hi lucius,
>
>From your descritption, I understand that you want to build an ASP.NET
>webservice which will support an asynchronous service processing pattern.
>The client can explicitly call webmethod to start a asynchronous
>server-side long-run task, and constantly ping the task status and get
>result at the end, correct?
>
>Based on the code snippet you provided, you define your webservice's
>webmethod as a .NET async method's signature(with AsyncCallback as
>parameter and return IAsyncResult). However, I think you do not need to do
>so since .NET webservice actually doesn't support distributed callback
>mechnism. So if you want to provide an asynchronous webservice pattern, you
>can simply expose all those webservice webmethods that are requied to make
>your task be able to process asynchronouly but they're still implemented as
>normal synchronous webmethods. For example, you can have the following web
>methods:
>
>**InitializeTask() which setup a server-side context and return a sessionID
>to client
>
>**StartTask(sessionID, TaskInfo) which can start a background and long-run
>task at server-side and associate it with a certain session
>
>**QueryTaskStatus(sessionID, TaskID) query task processing status
>
>**GetResult......
>
>
>All these methods are normal ASP.NET webmethods but the combining of them
>provide a asynchronous pattern service procesing model. How do you think?
>
>Sincerely,
>
>Steven Cheng
>
>Microsoft MSDN Online Support Lead
>
>
>
>==================================================
>
>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.
>
>