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);
//addAfter(Attac
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.
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
EwJVWTErMCkGA1UECgwiQURNSU5JU1RSQUNJT04gTkFDSU
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) {
super.writeC
FileConverter is like:
public class FileConverter {
public FileConverter() { }
public String convertToXMLData(String fileName) throws
FileNotFoundException, IOException {
BufferedReader br;
br = new BufferedReader(new FileReader(fi
Sounds good but now we are getting:
and
EwJVWTErMCkGA1UECgwiQURNSU5JU1RSQUNJT04gTkFDSU9OQUwgREUgQ09SUkVPUzEfMB0GA1UE
CwwWU0VSVklDSU9TIEVMRUNUUk9OSUNPUzEdMBsGA1UEAwwUQ29ycmVvIFVydWd1YXlvIC0gQ0Ew
HhcNMTUxMTI3MTk0NzE4WhcNMTYxMTI3MTk0NzE4WjCBmzEmMCQGCSqG
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.
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
Returning to writeCData() makes this:
MIIFhDCCA2ygAwIBAgIQUR762xXMDeJWWLNGuZSuszANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQG
EwJVWTErMCkGA1UECgwiQURNSU5JU1RSQUNJT04gTkFDSU9OQUwgREUgQ09SUk]]>