title: WCF: Catching Response that is not SOAP
body: <p>I am have been setting up a WCF Client to connect to a Service that I do not have control of (I think the service is implemented in Java).</p>
  
  <p>The service requires Certificate security and I got all the certificates setup but I get the following error when I connect to the endpoint</p>
  
  <pre><code>An HTTP Content-Type header is required for SOAP messaging and none was found.
  </code></pre>
  
  <p>I have setup SchemaValidationMessageInspector (<a href="http://msdn.microsoft.com/en-us/library/aa717047.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa717047.aspx</a>) to catch the Request and Response.
  I can see that the Request is caught but not the response.</p>
  
  <p>As I understand it is because the response is not of the SOAP format meaning that the Validation method is not triggered.</p>
  
  <p>I expect that the real error is a 404, 403, 500 or something like that.
  I have been using Wireshark to inspect the packets but it's all encrypted since it's too early in the "stack". I need the response right after the https decryption have occurred.</p>
  
  <p>How can I catch the none SOAP responses so I can see the error in a clear format?</p>