Tao, yes you can do that. Pls have a look ate the WSS4J FAQ. There is a short code snippet that show how to extract w SecurityEngine reults. From this result you can get a WSUSernameTokenPrincipal structure that contains the information you need. Pls also have a look at the Javadoc for WSUSernameTokenPrincipal.
Regards, Werner > -----Ursprüngliche Nachricht----- > Von: Liu, Tao [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 30. Januar 2006 19:16 > An: [email protected] > Betreff: get username from SOAP header > > I'm using WSS4J with UsernameToken, and I'd like to get the > username in SOAP > header. > > Is there any way to get the username in the services class or > pass it to the > service class for logging. > > Thanks, > Tao > > > --------------------------------------------------------------------- > 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]
