Re: Progress bar for web service?
- From: Bradley Plett <plettb@xxxxxxxxxxxxxxxx>
- Date: Thu, 06 Mar 2008 00:27:35 -0700
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 transferedin 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.
- Follow-Ups:
- Re: Progress bar for web service?
- From: "Steven Cheng"
- Re: Progress bar for web service?
- References:
- Progress bar for web service?
- From: Bradley Plett
- RE: Progress bar for web service?
- From: "Steven Cheng"
- 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: Web Services Client Error
- Previous by thread: RE: Progress bar for web service?
- Next by thread: Re: Progress bar for web service?
- Index(es):
Relevant Pages
|