Client client = Client.getInstance(service);
// Client client = ((XFireProxy) Proxy.getInvocationHandler(service)).getClient();
client.addOutHandler(new DOMOutHandler());
Properties outProperties = new Properties();
configureOutProperties(outProperties);
client.addOutHandler(new WSS4JOutHandler(outProperties));
// Configure incoming secuirty
client.addInHandler(new DOMInHandler());
Properties inProperties = new Properties();
configureInProperties(inProperties);