It was just my stupidity that prevent me to success on this... sorry!
I updated xmlsec to last version 1.4.1 (from 1.3.0 that is distributed with JBossWS), but
this didn't help.
After some reading about charset and encoding, The code that really works is this:
| Reader requestReader = new StringReader(requestMessage);
| StreamSource request = new StreamSource(requestReader);
| StreamSource response = dispatch.invoke(request);
| requestReader.close();
| TransformerFactory factory = TransformerFactory.newInstance();
| Transformer transformer = factory.newTransformer();
| BufferedStreamResult result = new BufferedStreamResult();
| transformer.transform(response, result);
| String responseMessage = result.toString();
| byte[] raw = responseMessage.getBytes("UTF-8");
| return new String(raw);
|
Thanks,
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140737#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...