Hi, Thanks a lot for your reply. I have fixed this issue and I would like to share that finding to you all.
Its a default encoding of castor which is "encoding="UTF-8", I haven't set anything programmatically. My way of creating xml is: EpaymentWebService responseEService = new EpaymentWebService(); responseEService.setID("Robin"); responseEService.setPassword("pass123"); .... .... StringWriter resXML = new StringWriter(); responseEService.marshal(resXML); System.out.println("Response XML: " + resXML.getBuffer().toString()); Note: EpaymentWebService: is a java file created thru castor code generator using xsd file. Our frontend Coldfusion program is parsing this output xml successfully, but backend Cobol program has failed. Solution: After I got xml out from castor, I have removed 'encoding="UTF-8" ' and passed to COBOL, now it starts working well. So Encoding is culprit here. Further investigation: Still I able to see the box in xml output from notepad(log text file). Thanks, Abdul Aleem FBL Financial Group, Inc. Information Technology Corporate Systems - Financial 515/453-3923 [EMAIL PROTECTED] Werner Guttmann <werner.guttmann@ gmx.net> To dev@castor.codehaus.org 08/01/2007 04:07 cc PM Subject Re: [castor-dev] Found null Please respond to character in between xml. [EMAIL PROTECTED] us.org I am actually not sure whether this is related to Castor at all. To be honest, this is the first time anybody reported a problem related to this area. I would assume that - if things were broken - we shoul dhave got to know about this earier. As such, could this be related to e.g. wrong encodings on your side, character sets, etc ? Werner Abdul Aleem wrote: > > Hi, > > Marshalling adds null character in between of the xml. After <?xml > version="1.0" encoding="UTF-8"?> element castor adds one null character and > remaining elements came as usual. Because of this, cobol program failed to > parse it. Please see the below image. > > Appreciate any help. > > > > Thanks, > > Abdul Aleem > FBL Financial Group, Inc. > Information Technology > Corporate Systems - Financial > [EMAIL PROTECTED] > > > > __________________________________________ > The information contained in this message may be privileged and > confidential and protected from disclosure. If you are not the intended > recipient of this message, you are hereby notified that any dissemination, > distribution, or copying of this communication is strictly prohibited. If > you have received this communication in error, please notify us immediately > by replying to the message, and please delete it from your computer. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email __________________________________________ The information contained in this message may be privileged and confidential and protected from disclosure. If you are not the intended recipient of this message, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message, and please delete it from your computer.
<<inline: C4932421.gif>>
<<inline: graycol.gif>>
<<inline: pic22385.gif>>
<<inline: ecblank.gif>>