WSS4J 1.x sets the Id only if it is required, e.g. when a reference to the token is needed. The neyt version fo WSS4J always sets an Id.
Can you do us a favour and send us the messages exhanged, also the message that worked? Thanks, Werner > -----Ursprüngliche Nachricht----- > Von: footh [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 8. März 2006 22:18 > An: [email protected] > Betreff: Axis client to .NET - simple question? > > I have what I think is a simple question. I'm using > an Axis client to invoke a .NET service which uses a > simple UsernameToken with a digested password. I'm > dynamically setting all the parameters using a "Call" > object. Here is the code snippet: > > call.setProperty(WSHandlerConstants.ACTION, > WSHandlerConstants.USERNAME_TOKEN); > call.setProperty(UsernameToken.PASSWORD_TYPE, > WSConstants.PW_DIGEST); > call.setProperty(WSHandlerConstants.USER, > "user"); > > call.setProperty(WSHandlerConstants.PW_CALLBACK_REF, > new PWCallback()); > call.setClientHandlers(new > org.apache.ws.axis.security.WSDoAllSender(), null); > > I am sending what appears to be a valid SOAP request. > But, I keep getting a "FailedAuthentication" error. I > asked the provider to send me a SOAP message that > works, and it looks very similar (obviously, the > digest is different). > > So, I can only conclude that there must be something > going on with the hash algorithm? Has an > incompatibility ever been discovered with the way .NET > and WSS4J digests the password? The service is using > WSE 2.0. > > The only other difference in the SOAP message is the > working one has this attribute in the UsernameToken > tag: > > wsu:Id="SecurityToken-0" > > But, I can't figure out a way to set the Id tag. I've > looked through the code and see where it is set, but > it is never called. > > Any help would be appreciated. > > Regards, > > JF > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
