This is how it can be done in CXF at least:
http://cxf.apache.org/docs/jaxb.html#JAXB-NamespacePrefixManagement
Metro is weaker here apparently:
http://forums.java.net/jive/message.jspa?messageID=348514 (scroll to
Andreas' response at the very end of this thread.)
Glen
Adam Zell wrote:
> Hello,
>
> I would like to control namespaces using a NamespacePrefixMapper and
> the "com.sun.xml.bind.namespacePrefixMapper" property on a
> Marshaller. This is fairly straight-forward using JAXB. However, I
> can't quite see how to do this with JAX-WS.
> I created a custom JAXBRIContext called via @UsesJAXBContext which
> wrapped the JAXBRIContext.newInstance() return value, but it doesn't
> appear that the createMarshaller() method is ever called.
>
> Is there a better way to do this?
>
> --
> Adam
> zellster_at_gmail.com <mailto:zellster_at_gmail.com>