Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters configuration element?

A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace=”http://contoso.com”)] public interface IShipping {
[OperationContract] string DoWork(int id); } This is one of several service contracts hosted
by your application. All endpoints use SOAP 1.2 bindings with WS-Addressing 1.0. The
System.ServiceModel.MessageLogging trace source in the system.diagnostics
configuration section is configured with one listener. You need to make sure that only the
messages that are returned from the DoWork operation are logged. Which XML segment
should you add to the system.serviceModel/diagnostics/messageLogging/filters
configuration element?

A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace=”http://contoso.com”)] public interface IShipping {
[OperationContract] string DoWork(int id); } This is one of several service contracts hosted
by your application. All endpoints use SOAP 1.2 bindings with WS-Addressing 1.0. The
System.ServiceModel.MessageLogging trace source in the system.diagnostics
configuration section is configured with one listener. You need to make sure that only the
messages that are returned from the DoWork operation are logged. Which XML segment
should you add to the system.serviceModel/diagnostics/messageLogging/filters
configuration element?

A.
<add xmlns:addr=”http://www.w3.org/2005/08/addressing”> //addr:Action[text() =
‘http://contoso.com/IShipping/DoWorkResponse’] </add>

B.
<add xmlns:soap=”http://www.w3.org/2003/05/soap-envelope”> //soap:Action[text() =
‘http://contoso.com/IShipping/DoWorkResponse’] </add>

C.
<add xmlns:addr=”http://www.w3.org/2005/08/addressing”> //addr:Action[text() =
‘http://contoso.com/IShipping/DoWork’] </add>

D.
<add xmlns:soap=”http://www.w3.org/2003/05/soap-envelope”> //soap:Action[text() =
‘http://contoso.com/IShipping/DoWork’] </add>



Leave a Reply 0

Your email address will not be published. Required fields are marked *