title: Web Service Reference issue with Visual Studio
body: <p>I'm having a hard time using Web Service reference with VS2010.
  I followed the following instructions:
  <a href="http://sarangasl.blogspot.fr/2010/09/create-simple-web-service-in-visual.html" rel="nofollow">Instructions</a></p>
  
  <p>I defined a simple function in my Web Service:</p>
  
  <pre><code>namespace WebService1
  {
      public class Service1 : IService1
      {
          public string HelloWorld(string name)
          {
              return "Hello "+name;
          }
  
          public double myFunction(double a, double b)
          {
              return a + b;
          }
      }
  }
  </code></pre>
  
  <p>It implements the following Interface:</p>
  
  <pre><code>namespace WebService1
  {
      [ServiceContract]
      public interface IService1
      {
  
          [OperationContract]
          string HelloWorld(string name);
  
          [OperationContract]
          double myFunction(double a, double b);
      }
  }
  </code></pre>
  
  <p>When I try to call it in my Console App:</p>
  
  <pre><code>using WebTest.MyReference;
  
  namespace WebTest
  {
      class Program
      {
          static void Main(string[] args)
          {
              Service1 service = new Service1();
              Console.WriteLine(service.HelloWorld("Edouard")); //Works
              double price = service.myFunction(2,3); //Doesn't Work
          }
      }
  }
  </code></pre>
  
  <p>VS2010 tells me that myFunction is defined this way: </p>
  
  <pre><code>void service1.myFunction(double a, bool aSpecified, double b, bool bSpecified, out double myFunctionResult, out bool myFunctionResultSpecified)
  </code></pre>
  
  <p>Which is clearly not the same use of my function!
  How can I be able to call my webservice function like I defined it?</p>