cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Transferring signed documents without breaking their XML signature
Date Tue, 31 May 2011 09:07:52 GMT
Hi


On Tue, May 31, 2011 at 8:39 AM, Marco Zapletal
<marco.zapletal@gmail.com> wrote:
> Hello,
>
>
> I am using CXF (with Camel) in order to consume XML documents, which are
> signed using XMLDSig. For validating the signature, I have to use a certain
> framework, which accepts only org.w3c.dom.Nodes - which means that I have to
> marshall the received documents back to DOM.
>
> However, JAXB marshalling/unmarshalling documents seems to break the
> signature (according to the links below), which I have also experienced
> myself.
>
> http://java.net/projects/jaxb/lists/users/archive/2007-03/message/110
> http://www.java.net/node/684787
>
> Is there any recommended approach how to transfer signed documents with CXF,
> which takes care of their signature (by avoiding JAXB
> marshalling/unmarshalling)?

You likely need to use javax.xml.transform.Source

Cheers, Sergey


>
> Regards,
> marco
>

Mime
View raw message