• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to generate JAR file given WSDL file?  RSS feed

 
Winston Liek
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have a given WSDL file (around 1MB) and inside of the file they have many request and response types.

I have to generate JAR from it so I could import it on my current project and use it


I have tried using this:
http://axis.apache.org/axis2/java/core/download.cgi

but it only generated 1 stub file and a 1 callback handler java files and its size is around 60MB.

WHat I need to is to generate seperate class file per response / request type... Is there a way to do it?
Please help me
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do not know if there is any direct way to get JAR out from WSDL File.
If I have understood your question correctly , you are trying to collect all Java Web Service Client side artifacts (all related Java classes) in one JAR file.

One simple way I can suggest -
a. Use wsimport command to generate Client side artifacts first.
b. And then use jar utility command to create JAR file which shall contains all java classes.

In case you want to automate these 2 steps, you can use ANT build tool and configure it's build.xml to perform these 2 tasks together.



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!