Balaji Sengeni created CXF-5156:
-----------------------------------
Summary: AbstractSoapInterceptor sub class not able to get hold of
SOAP body from message content when it is invalid xml
Key: CXF-5156
URL: https://issues.apache.org/jira/browse/CXF-5156
Project: CXF
Issue Type: Bug
Reporter: Balaji Sengeni
I have a inbound interceptor in service to get the soap message from message
SOAPMessage sm = message.getContent(SOAPMessage.class)
ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
sm.writeTo(out);
} catch (SOAPException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
String strMsg = new String(out.toByteArray());
and save 'strMsg' to database[whether it is invalid / xsd validation failed /
success message..]
But for invalid xml, <SOAP-ENV:Body/> is empty.
Phase is :
super(Phase.PRE_PROTOCOL);
Please let me know, if any further information required.
Regards,
Balaji
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira