I've created my web services top-down.
This nice feature generates a @WebServices annotated class with a method which returns a JAXB class.
The problem is that the response of the JAXB marshaller generates ns1, ns2 ... namespaces.
Fortunately, JAXB 2.0 (or later) provides a service provider interface (SPI) named com.sun.xml.bind.marshaller.NamespacePrefixMapper that you can use to specify more helpful namespace prefixes for marshalling. You implement the SPI and pass it to the Marshaller (http://blogs.sun.com/enterprisetechtips/entry/customizing_jaxb)
How can I do this ? How can I get a handle to the Marshaller ?
This topic has been locked.
2 replies Latest Post - 2012-12-21T08:24:59Z by CM9Q_VamsiKrishna_Sribhashyam
Pinned topic RAD 7.5.4 WebServices JAX-WS : Customizing Namespace Prefixes
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-12-21T08:24:59Z at 2012-12-21T08:24:59Z by CM9Q_VamsiKrishna_Sribhashyam
javapet 0600028YHM5 PostsACCEPTED ANSWER
Re: RAD 7.5.4 WebServices JAX-WS : Customizing Namespace Prefixes2010-01-11T07:37:46Z in response to javapetWhat I'm looking for is some kind of 'control over jaxbContext' as mentioned in http://weblogs.java.net/blog/2008/08/29/control-over-jaxbcontext-jax-ws-ri metro (@UsesJAXBContext). Is there something like this in de IBM jax-ws-ri ?
CM9Q_VamsiKrishna_Sribhashyam 270003CM9Q1 Post