Aki Yoshida created CXF-5290:
--------------------------------
Summary: jaxb's databinding to support an option to not include
specific namespace declarations when marshaling
Key: CXF-5290
URL: https://issues.apache.org/jira/browse/CXF-5290
Project: CXF
Issue Type: Improvement
Components: Core, JAXB Databinding
Affects Versions: 2.7.6
Reporter: Aki Yoshida
Assignee: Aki Yoshida
Currently, JAXB's databinding supports the namespace prefix mapping option to
use specific namespace prefixes at serialization but there is no option to not
include specific namespace declarations in the serialized message (e.g., when
an object is serialized into an output stream and when those namespaces are
already declared before).
Basically, we can provide
<bean class="org.apache.cxf.jaxb.JAXBDataBinding">
<!-- the available option to control the namespace prefix mapping -->
<property name="namespaceMap">
<map>
<entry key="http://cxf.apache.org/hello_world_soap_http/types" value="x"/>
</map>
</property>
<!-- a new option to specify the out-of-band namespace declarations -->
<property name="contextualNamespaceMap">
<map>
<entry key="http://cxf.apache.org/hello_world_soap_http/types" value="x"/>
</map>
</property>
This limitation was discussed in
http://cxf.547215.n5.nabble.com/Issue-in-Prefix-management-of-namespace-in-cxf-2-5-10-td5733766.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira