cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5156) AbstractSoapInterceptor sub class not able to get hold of SOAP body from message content when it is invalid xml
Date Fri, 26 Jul 2013 01:02:55 GMT

     [ 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

Mime
View raw message