You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2013/07/26 03:02:55 UTC

[jira] [Resolved] (CXF-5156) AbstractSoapInterceptor sub class not able to get hold of SOAP body from message content when it is invalid xml

     [ https://issues.apache.org/jira/browse/CXF-5156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-5156.
-------------------------------

    Resolution: Not A Problem
    
> 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
>            Assignee: Freeman Fang
>
> 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 (or) XSD validation failure, <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