M
mikew01
Hi,
Im looking for some assistance with how Castor marshalls/unmarshalls
objects.
Ive written an app that uses triple DES encryption/decryption which
works fine when applied to JUnit test data but when I make use of
castor to send the xml data across a network at some point control
characters are being inserted into the encrypted data which of course
causes the decryption to fail. I have resolved the problem by
stripping out whitespace from the string before decryption but this is
not ideal, hence my question regarding Castor.
The app works fine so long as the string is less than 55 characters,
one char above and the control character is inserted and the app
fails.
I am using
org.exolab.castor.parser=org.apache.xerces.parsers.SAXParser in the
castor.properties file for parsing the xml
Any help would be appreciated.
TIA
Im looking for some assistance with how Castor marshalls/unmarshalls
objects.
Ive written an app that uses triple DES encryption/decryption which
works fine when applied to JUnit test data but when I make use of
castor to send the xml data across a network at some point control
characters are being inserted into the encrypted data which of course
causes the decryption to fail. I have resolved the problem by
stripping out whitespace from the string before decryption but this is
not ideal, hence my question regarding Castor.
The app works fine so long as the string is less than 55 characters,
one char above and the control character is inserted and the app
fails.
I am using
org.exolab.castor.parser=org.apache.xerces.parsers.SAXParser in the
castor.properties file for parsing the xml
Any help would be appreciated.
TIA