Service service = getServiceFactory().create(MapService.class, null, "urn:MapService", null);
getServiceRegistry().register(service);
service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, MapServiceImpl.class);
XFireProxyFactory factory = new XFireProxyFactory(getXFire());
MapService client = (MapService) factory.create(service, "xfire.local://MapService");
// this fails when we do it... Woodstox bug?
// Client xclient = Client.getInstance(client);
// xclient.addOutHandler(new DOMOutHandler());
// xclient.addOutHandler(new LoggingHandler());