Hi,
I need to access de soap message to check its digital signature, but I haven't 
managed to do it. I've tried using:
        StaxBuilder sb = new StaxBuilder();
        Document d=sb.build(mc.getInMessage().getXMLStreamReader());
The returned document is always empty, although the XMLStreamReader element 
shows the contents in a debugging console. I've also tried accessing the 
header and the body separatedly, and then joining them in a document to 
validate the body's signature, but I've found out that the method 
messageContext.getInMessage().getBody() returns an Object, and don't know 
what it should be casted to. I've tried casting to Element, suppossing an 
analogue behavior to the getHeader() method, but I got an exception.
What is the best way to do it?
Thanks,
Iván.

Reply via email to