Is there a way to have WCF tracing do a Message Log Trace even when the response message is not a valid SOAP message? Right now it just throws an exception that the server did not provide a meaningful reply and stops tracing.
I need to see the reply though as it has information that is useful for me.
Enable message logging then set the attribute logMalformedMessages=true
.
Malformed messages are messages that are rejected by the WCF stack at any stage of processing. Malformed messages are logged as-is: encrypted if they are so, with non-proper XML, and so on.
maxSizeOfMessageToLog
defined the size of the message to be logged as CDATA. By default,maxSizeOfMessageToLog
is equal to 256K. For more information about this attribute, see the Other Options section.Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With