//定义WSS4JOutInterceptor
Map<String, Object> outProps = Maps.newHashMap();
outProps.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
outProps.put(WSHandlerConstants.USER, "admin");
outProps.put(WSHandlerConstants.PASSWORD_TYPE, WSConstants.PW_DIGEST);
outProps.put(WSHandlerConstants.PW_CALLBACK_REF, new PasswordCallback());
WSS4JOutInterceptor wss4jOut = new WSS4JOutInterceptor(outProps);
//将Inteceptor加入factory
proxyFactory.getOutInterceptors().add(wss4jOut);