Token actAsToken = getActAsToken();
config.getOtherOptions().put(STSIssuedTokenConfiguration.ACT_AS, actAsToken);
STSIssuedTokenFeature feature = new STSIssuedTokenFeature(config);
IPingService stub = service.getCustomBindingIPingService(new WebServiceFeature[]{feature});
stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
}
private Token getActAsToken(){
return new GenericToken(getSAMLAssertion());
}