Include signed XML into a single CDATA

2016-09-19 Thread xavi.dive.kite
I'm consuming a web service using CXF, the thing is that I need to send and XML inside a CDATA tag. To do it I created an interceptor public class CDATAInterceptor extends AbstractPhaseInterceptor { public CDATAInterceptor() { super(Phase.MARSHAL);

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-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
We are doing this: FileConverter converter = new FileConverter(); data.setXmlData(converter.convertToXMLData(filePath)); Where can I modify the behaviuor the writeCharacters? Because the call is like: if (useCData) {

Re: Include signed XML into a single CDATA

2016-09-20 Thread xavi.dive.kite
Sounds good but now we are getting: ![CDATA[? X509Data>X509SubjectName> and EwJVWTErMCkGA1UECgwiQURNSU5JU1RSQUNJT04gTkFDSU9OQUwgREUgQ09SUkVPUzEfMB0GA1UE CwwWU0VSVklDSU9TIEVMRUNUUk9OSUNPUzEdMBsGA1UEAwwUQ29ycmVvIFVydWd1YXlvIC0gQ0Ew

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
FileConverter is like: public class FileConverter { public FileConverter() { } public String convertToXMLData(String fileName) throws FileNotFoundException, IOException { BufferedReader br; br = new BufferedReader(new

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-tp5772863p5772898.html

Re: Include signed XML into a single CDATA

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