cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aki Yoshida (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5290) jaxb's databinding to support an option to not include specific namespace declarations when marshaling
Date Mon, 30 Sep 2013 20:05:26 GMT

     [ https://issues.apache.org/jira/browse/CXF-5290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aki Yoshida resolved CXF-5290.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0

keep it for 3.0.0 until we integrate part of rev 1490642 into 2.7.x that is required by this
fix.

as commented, i had difficultly in picking up part of 1490642 that didn't break the rt-frontend-jaxrs
test. maybe it is not complicated but i didn't get it right away as i hoped.


> 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
>             Fix For: 3.0.0
>
>
> 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)

Mime
View raw message