title: Defining ASP.NET SOAP web service response
body: <p>Apologies if this is an amatuer question. I have to modify an existing ASMX web service. The problem is, I need to modify the response that the web service generates. Below is an example of the current response:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" mlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;InsertCaseShortResponse xmlns="http://website.com/Service/"&gt;
        &lt;InsertCaseShortResult&gt;50314&lt;/InsertCaseShortResult&gt;
      &lt;/InsertCaseShortResponse&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>The InsertCaseShortResult returns a unique reference number if successful or an error message in case of failure. What I need to do, is add another response tag which gives a true or false flag as to whether the insert was a success or not. I haven't been able to find much info anywhere about how web services responses are constructed, I think I'm missing a fundamental element here. </p>
  
  <p>Any thoughts are greatly appreciated. </p>