RE: Progress bar for web service?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Thu, 06 Mar 2008 03:28:02 GMT
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Brad,
\par
\par From your description, you have some large objects that will be transfered in WCF service, and you're wondering how to monitor the transfer progress of such storng-typed objects without using streaming based transfer model, correct?
\par
\par Based on my research, I'm afraid it is not quite supported to get the transfer status of such strong-type objects in WCF. This is because without using the streaming model, the only means to detect such transfer status is through monitoring the underlying network transfer status. However, this is not exposed(encapsulated internally) in WCF network stack, so far I haven't found any good interface to inject into it. Therefore, my suggestion is that you should still consider the streamming + serialization approach.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par
\par ==================================================
\par
\par Get notification to my posts through email? Please refer to
\par http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
\par ications.
\par
\par
\par
\par Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
\par where an initial response from the community or a Microsoft Support
\par Engineer within 1 business day is acceptable. Please note that each follow
\par up response may take approximately 2 business days as the support
\par professional working with you may need further investigation to reach the
\par most efficient resolution. The offering is not appropriate for situations
\par that require urgent, real-time or phone-based interactions or complex
\par project analysis and dump analysis issues. Issues of this nature are best
\par handled working with a dedicated Microsoft Support Engineer by contacting
\par Microsoft Customer Support Services (CSS) at
\par http://msdn.microsoft.com/subscriptions/support/default.aspx.
\par
\par ==================================================
\par \tab
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par \pard\li720 --------------------
\par From: Bradley Plett <plettb@xxxxxxxxxxxxxxxx>
\par Subject: Progress bar for web service?
\par Date: Wed, 05 Mar 2008 12:12:16 -0700
\par Message-ID: <1hrts3tm5obuojvf3mcc0ef0tvgne9qbnq@xxxxxxx>
\par
\par
\par I am aware that showing progress for file transfers is relatively easy
\par with WCF since it can be done using a stream (see
\par http://www.codeproject.com/KB/WCF/WCF_FileTransfer_Progress.aspx for a
\par good example). However, I would like to show progress for a strongly
\par typed object. Is there an easy way to do that? I realize I could do
\par this using a stream as well, but I would need to handle the
\par serialization/deserialization myself in this case.
\par
\par I would think there should be a way of hooking into events at a lower
\par level than the object transfer, but I certainly don't have a clue how!
\par
\par As an example, I'd like to call the following method asynchronously
\par and then provide status updates:
\par
\par [WebMethod()]
\par public myBigObject MyCrazyMethod()
\par
\par Any help would be appreciated.
\par
\par Thanks!
\par Brad.
\par \pard
\par
\par }
- Follow-Ups:
- Re: Progress bar for web service?
- From: Bradley Plett
- Re: Progress bar for web service?
- References:
- Progress bar for web service?
- From: Bradley Plett
- Progress bar for web service?
- Prev by Date: Re: How to return a user-defined data type object from a webservice?
- Next by Date: Re: How to return a user-defined data type object from a webservice?
- Previous by thread: Progress bar for web service?
- Next by thread: Re: Progress bar for web service?
- Index(es):
Relevant Pages
|
Loading