[jboss-user] [JBossWS] - How to setup wsse usernametoken for ejb3 based web services?

xiaow do-not-reply at jboss.com
Tue Feb 19 17:28:29 EST 2008


I have tried to solve this for several weeks for jboss on either 4.2.2 or 5 beta 4 and was very frustrated. And I have easily configured this feature in Glassfish v3 and Oracle AS 10g. Now I work on a very simple web service annotated from a session bean as following:

@webservice
@stateless
public class Test{
  @Resource SessionContext context;
  public test(){
    String userName =  
        context.getCallerPrincipal().getName();
        System.out.println("The calling user is " + userName);
  }
}

I would like to see how step by step to configure only the usernametoken wsse feature for the web service against an LDAP source such as openldap or active directory in a jboss server (any version), so that the ejb test method is invoked and it prints the user name of the caller in the console (or log).

Your assistance is greatly appreciated.

Wu


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130556#4130556

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130556



More information about the jboss-user mailing list