> -----Original Message----- > From: KARR, DAVID > Sent: Thursday, September 13, 2012 9:53 AM > To: [email protected] > Subject: How to hardwire XML namespace prefixes when generating from > schema? > > I have one CXF project using version 2.3.2 (and others using newer > versions). This project generates the JAXB classes from schema. I'd > like to hardwire the namespace prefix we use. I can see how to do that > with hand-coded JAXB classes in the package-info class, but I'm not > sure how to make that happen from schema. Is there a way to do this?
Just so it's clear, I'm building JAX-RS services here, not JAX-WS. I noticed an example in the docs referring to "Namespace Prefix Management" where a JAXBDataBinding gets a "namespaceMap" property. This was apparently specific to JAX-WS. How would this work in JAX-RS?
