service.addOutHandler(wsOut);
getServiceRegistry().register(service);
// Create the client
XFireProxyFactory pFactory = new XFireProxyFactory(getXFire());
echo = (Echo) pFactory.create(service, "xfire.local://Echo");
client = ((XFireProxy) Proxy.getInvocationHandler(echo)).getClient();
client.addInHandler(wsIn);
client.addInHandler(new DOMInHandler());
client.addOutHandler(wsOut);