Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 852757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:39:05+00:00 2026-05-15T07:39:05+00:00

While I’m making SOAP or REST invocations to WCF, I’d like to have the

  • 0

While I’m making SOAP or REST invocations to WCF, I’d like to have the channel stack on either end (client and server) record the on-the-wire size of the data received. So I’m guessing I need to add a custom behavior to the channel stack on either side. That is, on the server side I’d record the IP-header advertised size that was received (cumulatively, until all packets for that message are received). On the client side I’d record the IP-header advertised size that was returned from the server (same summation process).

But this presupposes that this information is visible to a custom WCF behavior at the channel stack level. Perhaps it is only visible at the level of ASP.NET (at a layer beneath WCF)? Or perhaps WCF already collects this “total message size” info, and I can simply access a property?

In short, does anyone have any further insight on if and how this information is accessible? I must qualify that this “size” data will be collected in a production environment, as part of regular business logic calls. Thus I am not interested in the solutions proposed elsewhere.

This question is related to my earlier bandwidth question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:39:06+00:00Added an answer on May 15, 2026 at 7:39 am

    I think the only place where you could potentially get this information (or as close to it as possible) would be with a custom MessageEncoder that wrapped one of the system-provided ones and recorded that information.

    It wouldn’t be very hard to do, I think, but it would be annoying to hook as you’d need to use custom bindings for that, I think (or there might be a way to hook it in with a behavior, not sure).

    Might be worth pointing out that this would still leave out some on-the-wire data like HTTP headers and such that are sent by the transport but never actually part of the message itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While I'm developing Android-Apps I like to have a look at internal SDK implementations.
While making some final tests of a class-library that I'm writing for Windows Mobile
While trying to call an EJB made using NETbeans (using jdk1.7) from a client
While debugging my NServiceBus enabled application, I have certain messages that are reported in
While i click the submit button the form will look like below with error
while i'm using push notification in iphone with local server(used php), not able to
While editing and fixing up code I have thought that sometimes it would be
While scouring the net for an answer to my problem I have seen multiple
While using boost::threads I have come across this interruption problem. When I do a
While in the final throws of upgrading MS-SQL Server 2005 Express Edition to MS-SQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.