Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse WSDL generator (from java class)?

I want to generate WSDL compliant with Java classes. At this phase I don't want to put it online, just have the wsdl (in order to discuss it with someone else) and validate the generated file.

I'm using Eclipse, so I would prefer any solution that's already integrated with it.

like image 267
rnunes Avatar asked Oct 10 '11 17:10

rnunes


2 Answers

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.

like image 59
dbyrne Avatar answered Oct 19 '22 12:10

dbyrne


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

like image 43
Alvaro Pedraza Avatar answered Oct 19 '22 13:10

Alvaro Pedraza