title: How to intercept with WCF Web Method Requests?
body: <p>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.</p>
  
  <pre><code>&lt;%@ ServiceHost Language="C#" Debug="true" Service="MyNameSpace.MyService"%&gt;
  </code></pre>
  
  <p>Each web methods has an input parameter called sitename such as:</p>
  
  <pre><code>List&lt;string&gt; GetAvailableList(string param1, string sitename);
  </code></pre>
  
  <p>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.</p>
  
  <p>Is there anyway, like HTTPModule in ASP.NET, that I can intercept requests/input parameters and log them?</p>
  
  <p>Could I create a .dll and deploy it to the IIS so that it logs/intercepts the requests automatically?</p>
  
  <p>Basically, I'd like to know how many requests are coming in from each sitename.</p>