[jboss-dev-forums] [Design of JBoss Web Services] - JAXWS and Username Token

thomas.diesler@jboss.com do-not-reply at jboss.com
Wed Jul 25 06:29:07 EDT 2007


Magesh sais:

I am aware that the UserPrinciapl and Credentials are checked with this
test case and the details are passed via the HTTPRequest, but the real
question is about wsse:UsernameToken and its presence in SOAPHeader and
not in HTTPRequest.

When we set the BindingProvider properties we are able to login and this
testcase passes, but when we set the jboss-wsse-*.xml 
configuration this does not appear in the SOAPHeader, whereas it works
for JAXRPC style webservices and it works for JAXWS clients too if we
set the properties like this:

(BindingProvider)port).getRequestContext().put("javax.xml.rpc.security.auth.username", "kermit"); 
((BindingProvider)port).getRequestContext().put("javax.xml.rpc.security.auth.password", "thefrog");


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

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



More information about the jboss-dev-forums mailing list