[
https://issues.apache.org/jira/browse/CXF-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782158#comment-13782158
]
Aki Yoshida commented on CXF-5290:
----------------------------------
I was trying to integrate this revision along with part of its depending
revision 1490642 to 2.7.x, in fact, I pushed the changes to 2.7.x, but that
caused the test error at rt-frontend-jaxrs.
This patch requires a change in ASMHelper but its previous change is part of
revision 1490642 and not integrated into 2.7.x. As revision 1490642 is complex,
I picked only the change in ASMHelper. But this change alone also broke the
rt-frontend-jaxrs tests.
So I am abandoning integrating this fix to 2.7.x for now. We need to figure out
how to integrate part of rev 1490642 before.
aki
> 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 was sent by Atlassian JIRA
(v6.1#6144)