Spring WS 1.0 using Castor 1.1.1 marshalling (force UTF-8 encoding)

While XMLBeans performs marshalling operations using UTF-8 encoding by default, Castor XML relies on implicit Stream encoding. So, it’s mandatory to set UTF-8 encoding when using Castor marshalling on a Web Services client. Below a Spring WS web service client sample using XWSS 3.0 is exposed. Spring’s application context (applicationContext.xml) and XWSS security policy fileContinue reading “Spring WS 1.0 using Castor 1.1.1 marshalling (force UTF-8 encoding)”

Reading and writing fixed length records with Castor XML

I’ve been searching a generic Java tool in order to read and write fixed length records files with no success. Traditionally, mainframe systems produce plain text files filled with fixed length records. Number records are filled with zeroes at the left (p.e. the fixed Number5 value 100 should be 00100) and String records are completed with blank spaces (p.e.Continue reading “Reading and writing fixed length records with Castor XML”