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 wou开发者_如何学运维ld prefer any solution that's already integrated with it.
From eclipse in the java perspective:
- Right click on the Java class you want to use as your service implementation
- Select Web Services -> Create Web Service
- 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
精彩评论