Hi,

I've been evaluating Castor by unmarshalling XML digital signatures (see
http://www.w3c.org/Signature). We have implemented this standard in a J2EE
project on which I'm working as the Chief Architect. I am currently looking
at Castor as the framework for XML-Java binding and that requires Castor to
be able to umarshall and marshall XML digital signatures. It also seemed
like a good test for Castor, as these are rather complex XML instances ;-)
I've joined an example of an XML signature that I used for testing Castor.

Doing this, I came across the problem that base64 encoded values as a simple
type within a tag (<SignatureValue> in the example) causes a cast class
exception because Castor tries to stuff a String into a byte[]. For this
I've done a provisional fix in the marshalling framework for which I've
included the modified source files. You can find the modifications by
searching for comment starting with "FRVE".

Since I've only been busy for about 4 days with the source code now, I don't
feel comfortable that the fixes could go into Castor as such. I leave this
up to you to evaluate. I can only say that with these fixes applied, it is
possible to handle the XML signature example.

 <<FRVE-fixes.zip>>  <<signature2.xml>> 

Kind regards,
Francis


----------------------------------------------------------------------------
-----------------
ATOS/ORIGIN

Ing. Francis (FRA) Vermeulen
Senior Consultant e-business

mobile: +31 (0) 6 222 03 856
e-mail: [EMAIL PROTECTED] of
           [EMAIL PROTECTED]
----------------------------------------------------------------------------
-------------

Attachment: FRVE-fixes.zip
Description: Binary data

Attachment: signature2.xml
Description: Binary data

Reply via email to