File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disable xjc(JAXB generation) in wsimport task

 
Prash Negu
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Prash Negu
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic