OMTextImpl.getText() only works once with a datahandler
-------------------------------------------------------
Key: WSCOMMONS-550
URL: https://issues.apache.org/jira/browse/WSCOMMONS-550
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Affects Versions: Axiom 1.2.8
Reporter: Myles Bunbury
When OMTextImpl relies on an underlying datahandler's inputstream, a call to
getText() can be a one shot deal. Once the datahandler's inputstream is
consumed, the encapsulated data is lost and subsequent calls to getText()
return "".
I ran into this situation using Synapse with debug logging enabled. A debug log
message printed out the entire SOAP envelope to the log, thereby consuming the
binary data wrapped by OMTextImpl. When later on the SOAP envelope was
transmitted via the SendMediator, the OMTextImpl could no longer supply the
data.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.