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 WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML" Watch "GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML" New topic
Author

GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML

thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
I want to generate a ws client[JAX-WS ] bundled into a jar. is where it's at but no one even talks about putting the generated client into a jar!

I am using Maven for builds.

I'd like to set up maven to generate the client (wsimport or clientgen) when we build the service, then add that generated code's jar as a dependency to our client software. Then we don't waste time generating the ws client when it isn't needed

How do I write a maven.xml and build.xml.project.properties?

What else I need to have for generating the client?

can you please give me an example of maven.xml which uses wsimport or clientgen?

And also this should build a jar file which contains the generated classes from wsdl and xsd.

Has anyone addressed this issue before? Any suggestions?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I have done something along those lines in a previous project. I'll see if I can find the pom.xml.
Meanwhile, have you seen this article which describes how to use, among other things, the wsimport Maven plugin? http://blogs.sun.com/enterprisetechtips/entry/using_jax_ws_with_maven
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
thomas davis
Ranch Hand

Joined: Feb 01, 2003
Posts: 207
can you please give me some example which generates jar file as well?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
There is a nice, free, book about developing with Maven available here: http://www.sonatype.com/books/m2eclipse-book/reference/
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML
 
Similar Threads
Errors when using clientgen
Getting Exception :Problem: failed to create task or type arg in build.xml while creating webservice
JAX-WS RI wsimport not working
Clientgen ant task throwing errors in Weblogic 8.1 SP4
Use a class customization to resolve this conflict Error and JAXWS