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


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

Reply via email to