title: Web Service Method with Optional Parameters
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1723052/can-i-have-an-optional-parameter-for-an-asp-net-soap-web-service">Can I have an optional parameter for an ASP.NET SOAP web service</a>  </p>
  </blockquote>
  
  
  
  <p>I have tried looking around for this but I really cannot find the right solution for what I want to do. Sorry for the repetition since I know this has been asked before. I have a Web Service Method in which I want to have an optional parameter such as:</p>
  
  <pre><code>public void MyMethod(int a, int b, int c = -3)
  </code></pre>
  
  <p>I already know I cannot use nullable parameters, so I am just trying to use a default value. Problem is when I call this method without supplying argument c is still get an exception. Is there somewhere I have to specify it is in fact optional?</p>
  
  <p>Thanksю</p>