title: Custom Exception Handling in ASP.NET webservice
body: <p>I developed a asp.net 2.0 web service (.asmx), now my client said that </p>
  
  <blockquote>
    <p>"there is no fault exception available. It contains only request and
    response. We need to handle the exception scenarios while we are
    calling the webservice, Could you please update the WSDL on fault
    exception and send back the updated WSDL to us to proceed with the
    Client stubs.</p>
    
    <p>Webservice Response should have the below mentioned error code for the
    failure cases from the webservice as mentioned below :</p>
  
  <pre><code>            Error code:  Error Information
               002           Server Down
               003       Invalid Input Format
  </code></pre>
  </blockquote>
  
  <p>etc. 
  I am not sure how can i update my code so that the "fault exception" tags are generated in asmx wsdl file &amp; how should i throw such exception. 
  Any help/suggestion please or please let me know if you need further explanation. </p>