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 Dittmann Werner <we...@siemens.com> on 2004/06/01 09:16:54 UTC
AW: [jira] Created: (AXIS-1377) newlines, indention .. added to S
OAP messages -> breaks xml signature
Marcel,
we had the same problem in our Apache WS-FX
WSS4J project.
We solved the problem using specific methods
to set the new Axis message. Have a look
in the project's Axis handlers
WSDoAllSender and WSDoAllReceiver.
The serialization problem is not just because Axis
inserts newline etc. but the Axis serializer may
add multi-ref elements when it serializes the message.
The serialization takes place as the very last step
just before the data goes on the wire.
Regards,
Werner
> -----Ursprüngliche Nachricht-----
> Von: jira@apache.org [mailto:jira@apache.org]
> Gesendet: Dienstag, 1. Juni 2004 07:19
> An: axis-dev@ws.apache.org
> Betreff: [jira] Created: (AXIS-1377) newlines, indention ..
> added to SOAP messages -> breaks xml signature
>
>
> Message:
>
> A new issue has been created in JIRA.
>
> ---------------------------------------------------------------------
> View the issue:
> http://issues.apache.org/jira/browse/AXIS-1377
>
> Here is an overview of the issue:
> ---------------------------------------------------------------------
> Key: AXIS-1377
> Summary: newlines, indention .. added to SOAP messages ->
> breaks xml signature
> Type: Bug
>
> Status: Unassigned
> Priority: Minor
>
> Project: Axis
> Components:
> Serialization/Deserialization
> Versions:
> 1.1
>
> Assignee:
> Reporter: Marcel Mueller
>
> Created: Mon, 31 May 2004 10:18 PM
> Updated: Mon, 31 May 2004 10:18 PM
> Environment: Windows XP Prof, Java SDK 1.4.2
>
>
> Description:
> Axis adds new lines and other issues to SOAP messages. This
> is a problem since I send a signed xml file via SOAP to an
> webservice. Just the xml file is signed not the whole SOAP
> message. The webservice can't verify the signature since the
> newlines are added. I debugged the code and found the
> problem. Class SOAPEnvelope for instance sets the flag pretty
> in org.apache.axis.encoding.SerializationContextImpl before
> the content is serialized, that causes the trouble.
>
> This is hardcoded so I had to recompile some parts to get it working.
>
> This flag pretty in SerializationContextImpl might make sense
> in some cases. But it would be better that you can disable it
> from the outside somehow. The code in 1.2Beta looks pretty
> much the same so the issue is probably also there.
>
> Cheers
>
> Marcel
>
>
> ---------------------------------------------------------------------
> JIRA INFORMATION:
> 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
>
> If you want more information on JIRA, or have a bug to report see:
> http://www.atlassian.com/software/jira
>