title: How do I view the full SOAP response (including header) on incoming responses to a Service Reference in c#?
body: <p>I have a simple c# 3.5 .Net console application that hooks up to a service reference.  Everything's working fine - making calls and receiving responses, but now I've been told to look at the Soap header in the message that's coming back.</p>
  
  <p>I've found the .Net WebService Studio which is pretty awesome and will show both the Soap request and the Soap response.</p>
  
  <p>For a response, it shows something like this:</p>
  
  <pre><code>ResponseCode: 200 (OK)
  Content-Language:en-US
  Content-Length:30048
  Content-Type:text/xml; charset=utf-8
  Date:Mon, 25 Jan 2010 19:57:47 GMT
  Server:WebSphere Application Server/6.1
  
  &lt;?xml version="1.0" encoding="utf-16"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;soapenv:Header /&gt;
    &lt;soapenv:Body&gt;
  </code></pre>
  
  <p>How can I generate something similar in my application?  </p>
  
  <p>The response I'm interested in looking at is for a different method that returns a large enough message to blow up the WebService Studio.  I don't see how to set message size parameters using this tool.  So, I want to just capture this information myself.</p>
  
  <p>Any ideas on how I can do this?</p>