[
https://issues.apache.org/jira/browse/CXF-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp updated CXF-2278:
-----------------------------
Fix Version/s: (was: 2.3)
2.1.6
> Implement serialize method on JaxbAssertions
> --------------------------------------------
>
> Key: CXF-2278
> URL: https://issues.apache.org/jira/browse/CXF-2278
> Project: CXF
> Issue Type: Improvement
> Components: JAXB Databinding
> Affects Versions: 2.2.2
> Reporter: Dominic Harries
> Assignee: Daniel Kulp
> Fix For: 2.1.6, 2.2.3
>
> Attachments: JaxbAssertion.patch
>
>
> The JaxbAssertion class inherits it's serialize method from
> PrimitiveAssertion which unhelpfully returns nothing.
> This patch implements the serialize method using a JAXB marshaller. It uses
> similar code to JaxbAssertionBuilder to get a JAXBContext. It sets the
> "jaxb.fragment" flag of the marshaller so that the assertions can be included
> in larger xml documents (this is supported by all compliant implementations,
> see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).
> The patch builds cleanly against both 2.2.2 and the current trunk.
> Please include "from University of Southampton IT Innovation Centre" in the
> change log.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.