• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

disable xjc(JAXB generation) in wsimport task

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Ivan. Please advice how to place generated endpoint and JAXB artifacts in different projects/folders.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic