• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

.NET Webservice: determine number of bytes of data transferred

Hi,

I am calling a .NET webservice. Is there any way to determine how much data (in bytes) has/is being transferred?

thx
0
zattz
Asked:
zattz
1 Solution
 
NeotkCommented:
Try this.
In your web.config file:

<configuration><system.web>

<httpRuntime maxRequestLength="8000">

</configuration</system.web>


Regards, Rodrigo Leote.
0
 
SimonFerrisCommented:
Check out this article http://www.codeproject.com/soap/MTOMWebServices.asp 

To see how much has been transferred.
0
 
DropZoneCommented:
zattz,
   Do you want to know this information interactively, or do you want to know at the end of the transaction how much data was transfered?  The former may not be possible, but the latter depends on which side of the transaction you are doing.  In essence, you should be able to get to the HTTP Request and Response objects tied to the transaction from the WebService object.  Something like:

ServiceObj.ExecuteYourMethod();
BytesTransferred = ServiceObj.Context.Response.TotalBytes;

    -dZ.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
DropZoneCommented:
TheLearnedOne,
    As per my response, there is not enough information provided by the inquirer to assess a proper answer.  If, however, we can infer that he wants to know how much data was transmitted to the server on a web server request, then my answer should be accepted.  However, I don't know if this determination is fair.

     -dZ.
0
 
zattzAuthor Commented:
I apologize for not responding sooner.

I wanted to know the amount of data transferred interactively. I wanted to show the amount of data to transfer at the beginning, and then update the amount transferred interactively as the web service call progresses.

I never did find any solutions to this problem and gave up the idea.

Again, I apologise for not replying, it must have slipped through my inbox
0
 
DropZoneCommented:
See if this article helps:
http://www.codeproject.com/useritems/Soap_Extension_Progress.asp

It explains how to implement a progress bar that interactively shows the transfer progress of a web service call.

     -dZ.
0
 
DropZoneCommented:
And if that one doesn't help, try this one from Microsoft:
http://msdn2.microsoft.com/en-us/library/Aa480520.aspx

    -dZ.
0
 
zattzAuthor Commented:
looks good.

thanks
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now