Re: Progress bar for web service?



Sadly, that's the same conclusion I came to, but I keep hoping someone
else will figure out a good way to do this. Specifically, I was
hoping for exactly what you mention: some way of "monitoring the
underlying network transfer status". Oh, well, maybe in 4.0! :-)

Thanks anyway!
Brad.

On Thu, 06 Mar 2008 03:28:02 GMT, stcheng@xxxxxxxxxxxxxxxxxxxx
("Steven Cheng") wrote:

Hi Brad,

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?

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.

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.

--------------------
From: Bradley Plett <plettb@xxxxxxxxxxxxxxxx>
Subject: Progress bar for web service?
Date: Wed, 05 Mar 2008 12:12:16 -0700
Message-ID: <1hrts3tm5obuojvf3mcc0ef0tvgne9qbnq@xxxxxxx>


I am aware that showing progress for file transfers is relatively easy
with WCF since it can be done using a stream (see
http://www.codeproject.com/KB/WCF/WCF_FileTransfer_Progress.aspx for a
good example). However, I would like to show progress for a strongly
typed object. Is there an easy way to do that? I realize I could do
this using a stream as well, but I would need to handle the
serialization/deserialization myself in this case.

I would think there should be a way of hooking into events at a lower
level than the object transfer, but I certainly don't have a clue how!

As an example, I'd like to call the following method asynchronously
and then provide status updates:

[WebMethod()]
public myBigObject MyCrazyMethod()

Any help would be appreciated.

Thanks!
Brad.
.



Relevant Pages

  • RE: Progress bar for web service?
    ... \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 Microsoft MSDN Online Support Lead ... \par where an initial response from the community or a Microsoft Support ... Progress bar for web service? ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Progress bar for web service?
    ... \par Microsoft MSDN Online Support Lead ... \par Subject: Re: Progress bar for web service? ... \par>using the streaming model, the only means to detect such transfer status is ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: error: 1572894 the server connection timed out. 12030
    ... Have you got any progress on this issue or does the information in my last ... 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. ... Try to restore the backup and note that you will get an error when it attempts to restore the subsites. ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: error: 1572894 the server connection timed out. 12030
    ... Have you got any progress on this issue or does the information in my last ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... error when try restore a WSS 2.0 site, ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: POPUp - VB.Net
    ... how does your timer interact with the threads in your ... Private Sub Button1_Click(ByVal sender As System.Object, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.general)