I have a JAX-WS service running with a method, for ex:
calculate(int a, int b) .
Now I want to add a new parameter to this method
calculate(int a, int b, int c)
without disturbing the current clients whoever consuming the first service method, and both methods should have the same name.
Is this possible?
Method overloading for service calls is not encouraged even though few tools may allow you to do so. Pls Refer. Can we implement method overloading in web service class?. When the wsdl changes anyway your client have to take new stubs. So better take the latest signature code. Have a default value for 3rd parameter so that old clients can send the default value.