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 Certification (SCDJWS/OCEJWSD) and the fly likes disable xjc(JAXB generation) in wsimport task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "disable xjc(JAXB generation) in wsimport task" Watch "disable xjc(JAXB generation) in wsimport task" New topic
Author

disable xjc(JAXB generation) in wsimport task

Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
I am following top-down approach using JAX-WS. I have ant task for wsimport that generates the endpoint from WSDL. But, i have another xjc task that generates JAXB annoted artifacts. I want to keep these two tasks seperately.

But, when we run wsimport on wsdl, it looks like generated JAXB classes as well, but i just want only endpoint generated. How can we disable JAXB generatation in wsimport task?

Thanks in advance.

Thanks,
Prashant

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I don't think you can disable the generation of JAXB classes when using wsimport - what would the generator use for return types and parameters to the service if there were no JAXB bean classes.
Of course, you can use only primitives, but I assume you have more complex parameters and/or return types.
What you can do is delete the JAXB bean classes from your ant task. They usually end up in a special package, separated from the other artifacts, so it shouldn't be a difficult task.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Prash Negu
Ranch Hand

Joined: Apr 20, 2009
Posts: 45
Thanks, Ivan. Please advice how to place generated endpoint and JAXB artifacts in different projects/folders.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: disable xjc(JAXB generation) in wsimport task