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)