You are developing a Windows Communication Foundation (WCF) service.
You establish that the largest size of valid messages is 8,000 bytes. You notice that many malformed messages are being transmitted.
Detailed information about whether each message is malformed must be logged.
You need to ensure that this information is saved in XML format so that it can be easily analyzed.
What should you add to the service configuration file?
A.
<messageLogging
logMessagesAtServiceLevel=”true”
logMessagesAtTransportLevel=”true”
maxMessagesToLog=”1000″
maxSizeOfMessageToLog=”8000″ />
B.
<messageLogging
logEntireMessage=”true”
logMalformedMessages=”false”
logMessagesAtServiceLevel=”true”
logMessagesAtTransportLevel=”true”
maxMessagesToLog=”1000″ />
C.
<message Logging
logEntireMessage=”true”
logMalformedMessages””false”
logMessagesAtServiceLevel=”true”
logMessagesAtTransportLevel=”true”
maxMessagesToLog=”1000″
maxSizeOfMessageToLog=”8000″ />
D.
<messageLogging
logEntireMessage=”true”
logMalformedMessages=”true”
logMessagesAtServiceLevel=”true”
logMessagesAtTransportLevel=”true”
maxMessagesToLog=”1000″
maxSizeOfMessageToLog=”100000″ />
Explanation:
Configuring Message Logging
(http://msdn.microsoft.com/en-us/library/ms730064.aspx)logMalformedMessages=”true” is a key attribute
D