I have a WCF client for which I need to log messages. I need the complete SOAP envelope of both requests and replies.
My app.config
file has logging set up thusly:
<diagnostics>
<messageLogging logMalformedMessages="false" logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="false" logEntireMessage="true"
maxMessagesToLog="100" maxSizeOfMessageToLog="20000000" />
</diagnostics>
The message log is populated correctly... almost! For the requests only, the SOAP body is elided like this:
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Id="signature_e">...</s:Body>
Does anyone have any idea now to get the full SOAP body into my log?