How to trace WCF message size?
I'm fooling around with WCF, and would like to see how many messages I send/receive, and how large these messages are.
I tried activated WCF tracing, and ended up with a real huge trace file, but I found no way to extract the simple message size from this.
There sure must be some way to get this? Maybe I missed some parameters in tracing?
The WCF Service Trace Viewer tool allows you to open the huge trace file and analyze many aspects of your messages. Make sure you've also turned on message logging, so the messages themselves get logged too (with properties such as size...)
Besides using something like Wireshark (nee ethereal) you could look at something like Fiddler which has other benefits as well. It shows content length for all request/response and allows you to view the content in several ways.