Generating Web Service from WSDL File [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
开发者_开发知识库 Improve this questionI want to generate Web Service Classes from WSDL File. I want server side code not client side. wsimport creates client sides. which tool do you use to create server side code from WSDL File?
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.
精彩评论