RE: SoapExtension and NetworkStream
- From: CEvans <CEvans@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 20 Jul 2007 08:32:05 -0700
Manish,
Thanks for the response. I went to the wesites you provided and these do
seem like good monitoring tools. Unfortunatly, I am not looking for a
monitoring tool. I am looking at a way to show progress to an end user about
the rate data is being transfered over the network. I am also trying to show
percentage of completion of the data being sent across the network. I have
provided a link below which explains exactly what I am trying to do.
Unfortunately, the stream I am able to intercept with the SoapExtension is
too late in the deserialization process because it is already a memory stream
by that point. I am trying to find out how to intercept the stream earlier
in the deserialization process. I am doing all of my processing in the
BeforeDeserialization stage.
http://www.codeproject.com/useritems/Soap_Extension_Progress.asp
Thanks,
Evans
"Manish Bafna" wrote:
Hi,.
If you want to moniter the progress of data being sent over wire in web
services then i think tcptrace or fiddler tool is more appropriate:
[1]http://www.fiddlertool.com/fiddler/
[2]http://pocketsoap.com/tcptrace/
--
Hope this helps.
Thanks and Regards.
Manish Bafna.
MCP and MCTS.
"CEvans" wrote:
My Environment
* Windows XP
* .NET 2.0
* Visual Studio 2005
I have written a SoapExtension in c# on a windows XP machine. The purpose
of this extension is to monitor progress for data being transfered over the
wire. I have a web service that exposes one method. All this method does is
return a byte array of 5 megs. When I call the service I receive all 5 megs,
but my SoapException is not called until all 5 megs have been transfered over
the wire. I am succesfully getting the extension to launch, but by the time
it calls the ChainStream for the deserialization process, the Stream being
passed in is a MemoryStream and not a NetworkStream. I am loading the
SoapExtension through my app.config file with the lines below.
<system.web>
<webServices>
<soapExtensionTypes>
<add
type="WSProgressTest.SoapProgressExtension, WSProgressTest"
priority="0"
group="High" />
</soapExtensionTypes>
</webServices>
</system.web>
From what I understand, a priority of 0 and a group level of "High" should
make my SoapExtension be the first Extention to be called. I would like to
know if there is a way to read from a NetworkStream so I can monitor the rate
at which I am transfering data over the network.
Any insight is appriciated. Please let me know if there is some additional
info that owuld make this question simpler to understand/answer.
Thanks
- Prev by Date: Re: Multithreaded consumer
- Next by Date: Re: Multithreaded consumer
- Previous by thread: Multithreaded consumer
- Next by thread: Re: Calling 3.0 WCF webservice from 1.1 ASP.NET application
- Index(es):
Relevant Pages
|