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.