title: Webservice problem - methods can't take more than 1 parameter
body: <p>I'm using IntelliJ IDEA 8 and Axis to set up a webservice that's deployed on Tomcat5.5. The generated wsdl looks like this: <a href="http://track.priskick.se/Tracker.wsdl" rel="nofollow noreferrer">http://track.priskick.se/Tracker.wsdl</a></p>
  
  <p>A method is declared as </p>
  
  <pre><code>public void storeImpressionReport(int siteId, int adId, int zoneId, int count,
                                    int excludeCount) { ... }
  </code></pre>
  
  <p>and exposed in the webservice. Next, I build the client (also Java) using Axis, but as a runtime call to the method is made with the parameters <code>0,0,0,0,0</code>, I get this:</p>
  
  <pre><code>Tried to invoke method public void com.xxxxx.xxxx.xxxx.xxxxx.storeImpressionReport(int,int,int,int,int) with arguments java.lang.Integer,null,null,null,null.  The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException
  </code></pre>
  
  <p>Reducing the number of parameters of the method to 1 makes it work, however this feels like a pretty silly limitation and strange behaviour. Please help me if you know what might be wrong here - why can't I expose methods and have them take more than one parameter? </p>
  
  <p>=== UPDATE</p>
  
  <p>I now tried generating the client java using wsdl generated from IntelliJ instead of calling the service with the ?wsdl option. This wsdl keeps the correct parameter names, maybe because the generator has access to the source. Now I get </p>
  
  <p>No such operation 'siteId' 
  AxisFault </p>
  
  <p>These are the relevant files:
  <a href="http://track.priskick.se/Tracker/TrackerSoapBindingStub.java" rel="nofollow noreferrer">http://track.priskick.se/Tracker/TrackerSoapBindingStub.java</a>
  <a href="http://track.priskick.se/Tracker/TrackerServiceTestCase.java" rel="nofollow noreferrer">http://track.priskick.se/Tracker/TrackerServiceTestCase.java</a>
  <a href="http://track.priskick.se/Tracker/Tracker_PortType.java" rel="nofollow noreferrer">http://track.priskick.se/Tracker/Tracker_PortType.java</a>
  <a href="http://track.priskick.se/Tracker/TrackerService.java" rel="nofollow noreferrer">http://track.priskick.se/Tracker/TrackerService.java</a>
  <a href="http://track.priskick.se/Tracker/TrackerServiceLocator.java" rel="nofollow noreferrer">http://track.priskick.se/Tracker/TrackerServiceLocator.java</a></p>
  
  <p>the wsdl used for the client is found at
  <a href="http://track.priskick.se/Tracker.wsdl" rel="nofollow noreferrer">http://track.priskick.se/Tracker.wsdl</a></p>
  
  <p>the service is found at
  <a href="http://stage.klikki.com/services/Tracker" rel="nofollow noreferrer">http://stage.klikki.com/services/Tracker</a></p>
  
  <p>Cheers
  Marcus Johansson</p>