PrepAway - Latest Free Exam Questions & Answers

What should you do to ensure that only the AddStock() SOAP messages are logged?

You create an inventory management service by using Microsoft .NET Framework 3.5. You use Windows Communication Foundation to create the service.
Client applications that call the AddStock() method fail occasionally. You attempt to diagnose the problem by logging all the incoming SOAP messages.
The simultaneous receipt of a large volume of CheckStock() SOAP messages makes it difficult to isolate the problem.
You need to ensure that only the AddStock() SOAP messages are logged.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following filter to the system.diagnostics/sources/source/listeners element.
<filter type=”System.Diagnostics.SourceFilter”
initializeData=”Company.Ims.InventoryService.AddStock” >

B.
Add the following filter to the system.diagnostics/sources/source/listeners element.
<filter type=”System.Diagnostics.SourceFilter”
initializeData=”/s:Envelope/s:Header/a:Action[text() =
‘http: //example.com/ims/IInventoryService/AddStock’]”/>

C.
Add the following filter to the system.serviceModel/diagnostics/messageLogging element.
<filters>
<add>http: //example.com/ims/IInventoryService/AddStock</add>
</filters>

D.
Add the following filter to the system.serviceModel/diagnostics/messageLogging element.
<filters>
<add xmlns:s=”http: //schemas.xmlsoap.org/soap/envelope/”
xmlns:a=”http: //schemas.microsoft.com
/ws/2005/05/addressing/none”>
/s:Envelope/s:Header/a:Action[text()=
“http: //example.com/ims/IInventoryService/AddStock”]
</add>
</filters>


Leave a Reply