How to specify custom bindings with wsconsume?
Environment
- JBoss Enterprise Application Platform (EAP) 6.x
- JBoss Enterprise Application Platform (EAP) 5.x
Issue
We used to use -autoNameResolution with CXF's wsdl2java tool to handle name collisions in our wsdl but this option does not exist in wsconsume. How can we specify a bindings file to resolve our naming conflicts?
Resolution
Documentation on wsconsume and all the command line parameters is here:
https://docs.jboss.org/author/display/JBWS/wsconsume
The format for the binding file is documented here:
http://docs.oracle.com/javase/tutorial/jaxb/intro/custom.html
So, you just need to create the binding file and pass it into wsconsume using the -b option.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
