PrepAway - Latest Free Exam Questions & Answers

Which code fragment should you use?

You create a service by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation to create the service.
You use the WSHttpBinding binding to prevent tampering of the data. Users report that the data is unreadable.
You need to troubleshoot the problem by logging the incoming messages. Which code fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMessagesAtTransportLevel="true"/>
</diagnostics>
</system.serviceModel>

B.
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMessagesAtServiceLevel="true"/>
</diagnostics>
</system.serviceModel>

C.
<system.serviceModel>
<diagnostics>
<messageLogging logEntireMessage="true" logMalformedlMessages="true"/>
</diagnostics>
</system.serviceModel>

D.
<system.serviceModel>
<diagnostics>
<messageLogging logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
</diagnostics>
</system.serviceModel>


Leave a Reply