You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dominic Harries (JIRA)" <ji...@apache.org> on 2009/06/11 13:47:08 UTC

[jira] Updated: (CXF-2278) Implement serialize method on JaxbAssertions

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

Dominic Harries updated CXF-2278:
---------------------------------

    Attachment: JaxbAssertion.patch

> 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
>             Fix For: 2.2.3, 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.