How to intercept with WCF Web Method Requests?

dapriest

New Member
I have a WCF service (.svc file) which is hosted in IIS and that's not RESTful. It has some web methods with input parameters.\[code\]<%@ ServiceHost Language="C#" Debug="true" Service="MyNameSpace.MyService"%>\[/code\]Each web methods has an input parameter called sitename such as:\[code\]List<string> GetAvailableList(string param1, string sitename);\[/code\]Now I'd need to log the input url and input parameters of the web methods without going there and changing any implementation of the web methods.Is there anyway, like HTTPModule in ASP.NET, that I can intercept requests/input parameters and log them?Could I create a .dll and deploy it to the IIS so that it logs/intercepts the requests automatically?Basically, I'd like to know how many requests are coming in from each sitename.
 
Back
Top