A Windows Communication Foundation (WCF) service only accepts messages that are
signed and encrypted. A client application is not receiving expected responses from the
service. You need to enable logging to verify that the messages from the client are signed
and encrypted. You also need to see what each message looks like before the message
body is deserialized intoa .NET object. What should you do?
A.
Configure the System.ServiceModel trace source in the system.diagnostics configuration
section. In the system.serviceModel configuration, add the following XML segment.
<diagnostics> <messageLogging logEntireMessage=”true”
logMessagesAtServiceLevel=”true” logMessagesAtTransportLevel=”true” /> </diagnostics>
B.
Configure the System.ServiceModel trace source in the system.diagnostics configuration
section. In the system.serviceModel configuration, add the following XML segment.
<diagnostics> <messageLogging logEntireMessage=”true”
logMessagesAtServiceLevel=”true” /> </diagnostics>
C.
Configure the System.ServiceModel.MessageLogging trace source in the
system.diagnostics configuration section. In the system.serviceModel configuration, add the
following XML segment. <diagnostics> <messageLogging logEntireMessage=”true”
logMessagesAtServiceLevel=”true” logMessagesAtTransportLevel=”true” /> </diagnostics>
D.
Configure the System.ServiceModel.MessageLogging trace source in the
system.diagnostics configuration section. In the system.serviceModel configuration, add the
following XML segment. <diagnostics> <messageLogging
logMessagesAtServiceLevel=”true” logMessagesAtTransportLevel=”true” /> </diagnostics>
Explanation: