• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to Create a Jar from a WSDL

 
Lori Reed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic