This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?
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.