title: log request/response of .net SOAP web service
body: <p>I'm consuming a third party .NET SOAP WebService (.asmx). I want to log request and response. I have seen some solutions using <a href="http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapextension%28v=VS.80%29.aspx" rel="nofollow">SoapExtensions</a>. But I like to integrate logging in my system, some like this:</p>
  
  <pre><code>public class MyWebService : ThirdPartyWebService
  {
      public string Request { ... }
      public string Response {... }
  }
  </code></pre>
  
  <p>Could i do this? Is there another solution?</p>
  
  <p>UPDATE: I like avoid to serialize request and response object. But I´m doing this now.</p>