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 Need to Create a Jar from a WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need to Create a Jar from a WSDL" Watch "Need to Create a Jar from a WSDL" New topic
Author

Need to Create a Jar from a WSDL

Lori Reed
Greenhorn

Joined: Jun 02, 2012
Posts: 2
Hi,

I know very, very little about java web services, and I've inherited a program from a former employee. I need to generate a jar file from a wsdl, and I have the wsdl, and I know he used axis 1.4 to create the former version... but that's it. I've never used axis or tomcat before, and even the step-by-step guides skip some things. For instance, most tutorials have a line like this:

% java org.apache.axis.wsdl.WSDL2Java (WSDL-file-URL)

But there's nothing saying where to type that line. Does it go in a windows command prompt? Is there some command line thing in tomcat that everybody just knows how to find so nobody mentions where it is? Is it something I can find in the axis folder?

I seriously have no idea how to make this thing work. I usually use eclipse, but the wsdl2java converter plugin I found for that just turned the wsdl into a bunch of java files, which isn't what I need.

I've been trying to figure this out for three days, and I'm not having any luck at all. Please help!
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
The Java files is actually precisely what you need. Compile them, make a jar archive of them, and you should be done. (Assuming that your former colleague didn't make any changes to the code, but hopefully there'd be documentation covering that, because we wouldn't be able help with that.)

As to where to find documentation - that would be the Axis web site, which has very extensive documentation.
Lori Reed
Greenhorn

Joined: Jun 02, 2012
Posts: 2
Thank you, I was able to create the jar file, but I think I need to be able to do it with axis 1.4, because the classes with this axis 2 plugin are different than the previous jar file. Is there an axis 1.4 plugin for eclipse, or how do I run the wsdl2java? Does it use the command line, and if so, do I have to have my wsdl and axis in certain places to make it work?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'm not familiar with the Eclipse plugin, but Axis 1.4 and its entire documentation (which describes how to use its wsdl2java tool) are available at http://axis.apache.org/axis/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to Create a Jar from a WSDL