[jboss-user] [JBossWS] - Re: UsernameToken authentication using JBossWS

leandroal do-not-reply at jboss.com
Thu Dec 6 23:24:05 EST 2007


"leandroal" wrote : Do you say something like this:
  | 
  |         Map<String, Object> requestContext = ((BindingProvider)serviceSoap).getRequestContext();
  |         requestContext.put(BindingProvider.USERNAME_PROPERTY, "xxx");
  |         requestContext.put(BindingProvider.PASSWORD_PROPERTY, "yyy");
  | 
  | If yes, I did and it doesn't work.
  | 
  | When I run wsconsumer against the wsdl, it generated the UsernameToken java class and I can instantiate it:
  | 
  |         UsernameToken usernameToken = new UsernameToken();
  |         usernameToken.setUsername("xxx");
  |         usernameToken.setPassword("yyyy");
  | 
  | But how to add this object into the SOAP Header?
  | 
  | Thanks,
  | Leandro.
  | 
  | 

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

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



More information about the jboss-user mailing list