title: Constructor not defined: [myservice.listValues].<Constructor>(String, String) apex salesforce
body: <p>I need to use webservice to get some values. I  generated apex class from wsdl , in that class I get </p>
  
  <pre><code>public class myService{
      public myService.userInfo[] listValues(Long userId,String userName) {
  
      ...
      }
  }
  </code></pre>
  
  <p>I need to pass parameters and to get some values
  So I wrote this </p>
  
  <pre><code>myservice.listValues myObj = new  myservice.listValues('456','myName');
  </code></pre>
  
  <p>and I got this error:</p>
  
  <pre><code>Constructor not defined: [myservice.listValues].&lt;Constructor&gt;(String, String)
  </code></pre>
  
  <p>thanks</p>