Eclipse WSDL generator (from java class)?

I want to create a WSDL compatible with Java classes. At this point, I do not want to post it on the Internet, just use wsdl (to discuss it with someone else) and check the generated file.

I use Eclipse, so I would prefer any solution that is already integrated with it.

+7
source share
2 answers

From eclipse to java perspective:

  • Right-click the Java class that you want to use as your implementation.
  • Select Web Services → Create Web Service
  • The type of web service should be "Botton up Java bean Web service"

This will create a WSDL file for you.

+8
source

You can also publish this service on localhost with any server (for example, Tomcat), and then with your browser write in the address bar

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

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

Hope that helps

+1
source

Source: https://habr.com/ru/post/898989/


All Articles