[ 
https://issues.apache.org/jira/browse/CXF-5156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13720628#comment-13720628
 ] 

Balaji Sengeni commented on CXF-5156:
-------------------------------------

Hi Freeman,

 Tried using above code but able to get hold of partial data only. Always 
soapMessage misses first 4008 characters, tried different option in for line : 
"IOUtils.copy(is, bos);" but not able to get hold of first full soap message.

 My message is approximately around : 20000 bytes.

Regards,
 Balaji
                
> 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

Reply via email to