Returning to writeCData() makes this:
MIIFhDCCA2ygAwIBAgIQUR762xXMDeJWWLNGuZSuszANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQG
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/
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
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/
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.
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.
);
}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
",
"").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.
) {
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.
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
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
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.
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
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-
14 matches
Mail list logo