Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF won't trace non-soap reply messages

Tags:

trace

wcf

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.

like image 986
Shane Courtrille Avatar asked Dec 22 '15 17:12

Shane Courtrille


1 Answers

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

like image 131
Captain Sensible Avatar answered Oct 05 '22 09:10

Captain Sensible