The WSDL2Java tool always generates classes that can be used on the client, regardless of whether or not you specify the -s option. Classes that it generates for the defined types can be used on the server or client. The locator and stub can be used on the client. I don't think there is a way to stop it generating the client side classes, but you can always ignore them.
Tony
Hello All,
Why does Axis produce 5 classes when WSDL2Java invoked with -s option?
I mean if I want to make my class Dummy as web service, from WSDL file,
it
generates
the following files along with deploy.wsdd and undeploy.wsdd files
1. Dummy.java
2. DummyService.java
3. DummyServiceLocator.java
4. DummySoapBindingStub.java
5. DummySoapBindingImpl.java
But after deploying the service, when the client invokes the service, only
the follwoing 2 classes
are needed on the server.
1. DummyService.java
2. DummySoapBindingImpl.java
Then why does Axis generate the other 3 files?
Thanks,
SSSS.
____________________________________________
Confidential: This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited. If
you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.