title: C# Getting XML SOAP response from autogenerated Reference.cs in Visual Studio
body: <p>In visual studio 2008 using .net 3.5 i have consumed a WSDL which has automatically generated a Reference.cs. 
  This was done by right clicking on References in my project and selecting "Add Web Reference"</p>
  
  <p>Using this i can post to the web service and get valid responses through my ref and out objects. postValues() is a void method.</p>
  
  <pre><code>webService.postValues(ref value1, ref value2, out value3);
  </code></pre>
  
  <p>Using WireShark i can see the the request and full soap response on my network. </p>
  
  <p>What im trying to figure out is how can i capture this raw SOAP response in my code.
  I would like to capture this for logging purposes and would rather not individually serialize each of the ref objects. </p>
  
  <p>I cant see anyway to do this without modifying the automatically generated Reference.cs which id rather not do. 
  Any help would be appreciated.  </p>
  
  <p>Edit: There doesnt seem to be a way to do this that i can see. Can anyone else confirm or deny this?</p>
  
  <p>EDIT. Ill bump this just one more time to see if anyone knows.</p>