共用方式為


Logging Binary Messages

I've added a binary message encoder but the logged messages are still in plain text. How do I configure the service to produce binary messages?

Message logging always outputs the decoded message. If you have set everything up right, then that means that the message will be in plain text. The point of message logging is to record messages so that you can view them later. You probably don't know how to read a binary message. The output of message logging has no relationship to the transfer format of the message.

The binary message in this question can be replaced with encrypted message or any similar on the wire transformation. You can put a proxy between the client and server if you want to see exactly what gets sent on the wire. It wouldn't be possible to create an equivalent capture from within WCF because the native networking stack may be changing the protocol stream.

Next time: Between 50 and 100

Comments

  • Anonymous
    June 13, 2007
    The comment has been removed