Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
Returning to writeCData() makes this: MIIFhDCCA2ygAwIBAgIQUR762xXMDeJWWLNGuZSuszANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQG

Re: Include signed XML into a single CDATA

2016-09-20 Thread Sergey Beryozkin
ext: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772898.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
The problem is that super.writeCharacters(string) Escapes <, > and &... by default, but no way to avoid this behaviour... Don't know how to use another library there -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p57

Re: Include signed XML into a single CDATA

2016-09-20 Thread Sergey Beryozkin
glt; -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772894.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
Sorry but scape characters are coded in my response. I'm getting < as other representation like glt; -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772894.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
qfBzbS/Ug4uXcESdmOahQPVCpJcG8jgW6HuCO1dlQ9P0Qwsxk+zjC He+Bm4+lnFQfcn1ClMvkGJzAxE/HJbBXkr1WDpcDKVt4nhMjGYj5w77H1p2Fj3CXC0eMAlf9MpHD Any idea? -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772893.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Include signed XML into a single CDATA

2016-09-20 Thread Sergey Beryozkin
); }else { super.writeCharacters(text); } BR -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772888.html Sent from the cxf-user mailing list archive at Nabble.com. -- Sergey Beryozkin Talend

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
", "").replaceAll("[\\r\\n]+", ""); works fine but breaks the XML signature (changes the signed XML) -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772889.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
) { super.writeCData(text); }else { super.writeCharacters(text); } BR -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772888.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Include signed XML into a single CDATA

2016-09-20 Thread Sergey Beryozkin
Hi, it might be something to do with writeCData vs writeCharacters, not really sure. I guess the easiest way is, if you detect it should be CData, simply write CData decorations manually as part of writeCharacters Sergey

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
Sergey, I have debugged and there is only one call to CDataXMLStreamWriter.writeCharacters(text). But, for example, in the text We have the certificate used to sign the XML: MIIFhDCCA2ygAwIBAgIQUR762xXMDeJWWLNGuZSuszANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQG

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
HI Sergey, How can do that? I'm not able to do it. BR -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863p5772881.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Include signed XML into a single CDATA

2016-09-19 Thread Sergey Beryozkin
enough, and sorry if the post is hard to understand. If you can give me one clue to solve this problem it would be great! Thanks, -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-CDATA-tp5772863.html Sent from the cxf-user mailing list archive

Include signed XML into a single CDATA

2016-09-19 Thread xavi.dive.kite
ng the characters breaks the signature. I hope this was clear enough, and sorry if the post is hard to understand. If you can give me one clue to solve this problem it would be great! Thanks, -- View this message in context: http://cxf.547215.n5.nabble.com/Include-signed-XML-into-a-single-