File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes generate java class from wsdl - eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "generate java class from wsdl - eclipse" Watch "generate java class from wsdl - eclipse" New topic
Author

generate java class from wsdl - eclipse

Kevin Kilbane
Ranch Hand

Joined: Sep 22, 2008
Posts: 42
Hi,

Does anyone know of a good Eclipse plugin (that's free!) that will generate Java classes from a wsdl?

Thanks in advance.
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

I think it comes inbuilt in eclipse. Not sure in which version.
In Ganymede I simply right click and select generate Client and it makes all the client proxies for me.


My Blog SCJP 5 SCWCD 5
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
The web service tools built into Eclipse Ganymede is the Axis tools.
Actually, you do not need any plugin to generate Java classes from a WSDL - an Ant script is enough.
Example of an Ant script that will generate client artifacts from a WSDL:

Modify the script to match your system. Create a directory named "wsimport_generated" in the root of the project.
Best wishes!
sudha swami
Ranch Hand

Joined: Apr 24, 2007
Posts: 179
Hi,
Eclipse comes with the webservice tools. You just need to right click the wsdl and click the generate the java client option. No need to use any third party jar file.
Thanks
Sudha
Kevin Kilbane
Ranch Hand

Joined: Sep 22, 2008
Posts: 42
Thanks for the replies.

What I did in the end was installed the axis plugin from here:

http://ws.apache.org/axis2/tools/1_4_1/eclipse/wsdl2java-plugin.html

and then fixed the plugin as outlined here:

http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/#comment-42
Kevin Kilbane
Ranch Hand

Joined: Sep 22, 2008
Posts: 42
Thanks for the replies.


What I did in the end was installed the axis plugin from here:


http://ws.apache.org/axis2/tools/1_4_1/eclipse/wsdl2java-plugin.html


and then fixed the plugin as outlined here:


http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/
 
Don't get me started about those stupid light bulbs.
 
subject: generate java class from wsdl - eclipse