开发者

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:

  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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜