Axis reformats documents when using MessageFactory.createMessage(byte[])
------------------------------------------------------------------------
Key: AXIS-2447
URL: http://issues.apache.org/jira/browse/AXIS-2447
Project: Apache Axis
Type: Bug
Components: Serialization/Deserialization
Versions: 1.3
Environment: Linux, JDK 1.4.2_07
Reporter: Werner Dittmann
Priority: Blocker
WHen document is converted to a SOAP Message using the following code:
Canonicalizer c14n =
Canonicalizer.getInstance(Canonicalizer.ALGO_ID_C14N_WITH_COMMENTS);
byte[] canonicalMessage = c14n.canonicalizeSubtree(doc);
ByteArrayInputStream in = new ByteArrayInputStream(canonicalMessage);
MessageFactory factory = MessageFactory.newInstance();
return factory.createMessage(null, in);
The message factory is "javax.xml.soap.MessageFactory;", the doc is a signed
document.
Printing the message after retrieving it with getSOAPEnvelope().getAsDOM():
XMLUtils.PrettyElementToWriter(signedMsg.getSOAPEnvelope().getAsDOM(), new
PrintWriter(System.out));
shows that the methods inserted newlines at various places. This destroys every
signature created for that document.
**** All WSS4J test cases fail with 1.3 * Axis 1.2.1 works perfectly with the
unaltered test cases ****
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira