axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dorner, Thomas" <>
Subject AW: SOAPMessage changes to content in rpc handler
Date Fri, 15 Jul 2005 06:57:52 GMT

First of all, I also try to encrypt and sign a SOAP-Message - with no
Second I use a handlerchain with 3 handlers with no problem - so there is no
problem when you add a SOAP-Header to the SOAP Message like this:

SOAPEnvelope env = msg.getSOAPEnvelope();
SOAPHeaderElement header = new
SOAPHeaderElement("", "sessionID", id);

But I think when you will replace the whole Message you should do a c14
This reorganize the SOAP-Message or something like that

There is also an Parameter or Property when you use the WSDoAllHandler in
.wsdd to say ist the last handler in a chain - so there will be a last todo
for the last handler (maybe the canonicalization I think)

This should be documented in the AXIS-Handler-Doc or so!?

Can you pls show me your handler doing signature?
You can also look at the code of WSDoAllHandler to see how It can work, but
thats a lot of code! :(



-----Urspr√ľngliche Nachricht-----
Von: mtim [] 
Gesendet: Freitag, 15. Juli 2005 06:01
Betreff: Re: SOAPMessage changes to content in rpc handler

sorry by mistake I pushed a wrong button  :-) ,  had a long day today. 

So I have handlers on client side but the same behaviour is on server side: 
- H1 applies apply digital signature to outgoing message by transforming
message -> xml Document (signing) ->  message
- H2 adds asynchronous SOAP headers  to the same message.

Handlers  work OK separately, without any problems. But when I put them
together in the chain I get:
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
	at org.apache.axis.SOAPPart.getEnvelope(

I found that the source of this problem is SOAP -> DOC -> SOAP
transformation. If I don't do transformation but reuse the same SOAP message
that handler H1 gets from the message context, by modifying its content
instead of replacing it ,everything works fine, but signature verification

Any ideas? Is it allowed to replace the SOAP message in the handler ? 
I'd really appreciate any help.

Best regards,

On 7/14/05, mtim <> wrote:
> Hello everyone,
> I have a strange probelem, maybe someone know the answer.
> I have 2 handlers in the chain (H1 and H2) :
> H1

View raw message