This content has been marked as final.
Show 3 replies
-
1. Re: JAXWS and Username Token
thomas.diesler Jul 25, 2007 6:40 AM (in response to thomas.diesler)In WSSecurityDispatcher is see
if (operationConfig.getUsername() != null) { Object user = ctx.get(Stub.USERNAME_PROPERTY); Object pass = ctx.get(Stub.PASSWORD_PROPERTY); if (user != null && pass != null) { operations.add(new OperationDescription<EncodingOperation>(SendUsernameOperation.class, null, user.toString(), pass.toString(), null)); ctx.put(StubExt.PROPERTY_AUTH_TYPE, StubExt.PROPERTY_AUTH_TYPE_WSSE); } }
which indeed only processes the jaxrpc stub properties.
More generally, StubExt needs to be refactored such that it applies to both jaxrpc and jaxws.
Could you please create
org.jboss.test.ws.jaxws.samples.wssecurity.SimpleUsernameTestCase -
3. Re: JAXWS and Username Token
mageshbk Aug 15, 2007 10:52 AM (in response to thomas.diesler)Test case has been added. But at the moment, the wsse:Security is not returned by the API SOAPEnvelope.getHeader().