Werner,
It is -- 1.4-FINAL is a tag branch; the nightly snapshots are (I
believe) of the trunk, which has substantial changes. However, 1.4-
FINAL is what is being planned as the next release.
From the svn logs, there are quite a few changes dealing with XML
Pretty Printing in the nightly snapshots that are not in 1.4-FINAL.
Would you be willing to test 1.4-FINAL and see if the issues are
present in that branch as well?
It's at http://svn.apache.org/repos/asf/webservices/axis/branches/
AXIS_1_4_FINAL/
Thanks,
Bjorn
On Mar 30, 2006, at 11:19 AM March 30, Werner Dittmann wrote:
Björn,
today I downloaded a nightly snapshot of Axis 1.4 - same problem.
Is 1.4FINAL different from the nightly snapshots?
When I look at the serialized XML message then I see that some part
of the code inserts linefeeds. Axis 1.2.1 does not show this
behaviour.
Some info on the mailing list said that prettyxml is disabled by
default
(somehow I wonder why this sort of function was introduced in Axis
in -
computers don't care abozt pretty printing).
Bjorn Townsend (JIRA) wrote:
[ http://issues.apache.org/jira/browse/AXIS-2447?
page=comments#action_12372498 ]
Bjorn Townsend commented on AXIS-2447:
--------------------------------------
Werner,
Isn't this already fixed in 1.4-FINAL? Looks like you and Dims had
a discussion about it back in October:
http://mail-archives.apache.org/mod_mbox/ws-fx-dev/200510.mbox/%
[EMAIL PROTECTED]
Link to the revision:
http://svn.apache.org/viewcvs.cgi?rev=314867&view=rev
Were there still problems still outstanding with this?
Thanks,
Bjorn
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 ****