Generating Web Service from WSDL File [closed]

自古美人都是妖i 提交于 2019-11-27 20:34:26

Use NetBeans or Eclipse. Both of them make it really easy to create a new web service from an existing WSDL.

Eclipse tutorial: http://www.eclipse.org/webtools/community/tutorials/TopDownAxis2WebService/td_tutorial.html

NetBeans tutorial:
http://weblogs.java.net/blog/2008/03/05/developing-webservices-wsdl-using-netbeans

To complete Andreas_D response, I have used wsdl2java to generate Java Web Service client from WSDL document.

Download page wsdl2java (binary distribution is ready to use)

You can simply generate code with command line :

wsdl2java -d output_directory/ document.wsdl

The code will be saved in output_directory folder.

Documentation for others arguments.

Apache Axis could be your friend. It ships with a wsdl2java tool to autogenerate Java classes from a wsdl file for both client and server.

For testing and experimenting: use soapUi in addition.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!