wssOut.setProperties(getNoPasswordProperties("alice"));
simpleService.doStuff();
// this is successful because the alternative policy allows a password to be specified.
wssOut.setProperties(getPasswordProperties("alice", "password"));
simpleService.doStuff();
}
private WSS4JOutInterceptor addToClient(Object svc) {
Client client = ClientProxy.getClient(svc);
WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor();