You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Frank Cornelis (JIRA)" <ji...@apache.org> on 2014/01/16 21:21:19 UTC

[jira] [Created] (CXF-5496) INBOUND_MESSAGE_ATTACHMENTS after soapMessage.writeTo(outputStream)

Frank Cornelis created CXF-5496:
-----------------------------------

             Summary: INBOUND_MESSAGE_ATTACHMENTS after soapMessage.writeTo(outputStream)
                 Key: CXF-5496
                 URL: https://issues.apache.org/jira/browse/CXF-5496
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.7.7
            Reporter: Frank Cornelis


In a client I receive SOAP attachments.
Retrieving them within a SOAPHandler via
{code}
context.get(MessageContext.INBOUND_MESSAGE_ATTACHMENTS)
{code}
works, but if I first do (for logging purposes)
{code}
SOAPMessage soapMessage = context.getMessage();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
soapMessage.writeTo(outputStream);
{code}
and afterwards try to retrieve the SOAP attachments via:
{code}
context.get(MessageContext.INBOUND_MESSAGE_ATTACHMENTS)
{code}
the DataHandler gives me an empty byte array.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)