Eclipse WSDL generator (from java class)?

From eclipse in the java perspective:

  1. Right click on the Java class you want to use as your service implementation
  2. Select Web Services -> Create Web Service
  3. Web service type should be "Botton up Java bean Web Service"

This will generate a WSDL file for you.


Also you can publish the service at localhost with any server (Tomcat, for instance) and then with your browser in the address bar write

http://localhost:<server_port>/path/to/your/service?wsdl

If the service is correctly configured, you should see the generated wsdl. Then you can copy/paste in any text editor and save it as myService.wsdl.

Hope that helps