public static void deployService(String serviceName, String scope, InputStream config) throws Exception { if (context == null) { throw new RuntimeException("Missing context"); } // Load the service AxisService service = DeploymentEngine.buildService(config, Thread.currentThread().getContextClassLoader(), context); // Service name = actor name service.setName(serviceName); // application scope service.setScope(scope); // Register the service context.getAxisConfiguration().addService(service); // FIXME: it seems that it takes a bit longer for a service to become available }