config = new BasicServerConfig();
server = new AxisServer(config);
// Deploy a service which contains an option that we expect to be
// available by asking the MessageContext in the service method (see
// PropertyHandler.java).
RPCProvider provider = new RPCProvider();
SOAPService service = new SOAPService(provider);
service.setName(SERVICE_NAME);
service.setOption("className", TestService.class.getName());
service.setOption("scope", "application");
service.setOption("allowedMethods", "*");
config.deployService(SERVICE_NAME, service);