client.getOutInterceptors().add(wssOut);
return wssOut;
}
private Map<String, Object> getPasswordProperties(String username, String password) {
UTPasswordCallback callback = new UTPasswordCallback();
callback.setAliasPassword(username, password);
Map<String, Object> outProps = new HashMap<String, Object>();
outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
outProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_TEXT);
outProps.put(WSHandlerConstants.PW_CALLBACK_REF, callback);