You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Werner Dittmann (JIRA)" <ax...@ws.apache.org> on 2006/03/24 17:11:51 UTC

[jira] Updated: (AXIS-2448) Axis reformats a document when creating a message with MessageFactory.createMessage(byte[])

     [ http://issues.apache.org/jira/browse/AXIS-2448?page=all ]

Werner Dittmann updated AXIS-2448:
----------------------------------

    Attachment: Signature-1.3.txt

> Axis reformats a document when creating a message  with MessageFactory.createMessage(byte[])
> --------------------------------------------------------------------------------------------
>
>          Key: AXIS-2448
>          URL: http://issues.apache.org/jira/browse/AXIS-2448
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.3
>  Environment: Linux, JDK 1.4.2_07
>     Reporter: Werner Dittmann
>     Priority: Blocker
>  Attachments: Signature-1.3.txt
>
> 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 the 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 varoius places. This destroys Signatures of the
> message.
> ***** All WSS4J testcases fail with 1.3 * Axis 1.2.1 works perfectly.

-- 
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