Hello,

I have a problem using WSS4j. I've been using it for a long time and everything 
was fine until I started to use one org.apache.axis.client.Call object for many 
web service invocations. Since then I have started to get errors like: actions 
number mismatch. When I look on the SOAP envelopes they have more security 
headers than they're supposed to have. In my wsdd file I have two handlers 
configured: signature(requestFlow,using certificate1) and signature 
verification(responseFlow, certificate2 used for verification). But my envelope 
have for example two binary security tokens and two signatures: one using 
certificate1 and one using certificate2. I'm not sure what are the data signed. 
I think that maybe security headers are not being cleared between invoke() 
methods, should I do it using method Call.clearHeaders() ? I have some problems 
with endpoints too. I have an impression that method setTargetEndpoint(URL ...) 
doesn't always work. The worst thing is that those errors are quite rare, like 
once for couple of thousands invocations, so it's hard to observe it and test 
some solutions.

Does any of you have such a problem? What methods between Call.invoke() 
invocations should I call except setTargetEndpoint() to make it work properly?

Regards,

Anna Krajewska

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to