MessageContext messageContext;
//Global services
AxisService as1 = new AxisService("Service1");
AxisService as2 = new AxisService("Service2");
as1.addEndpoint("Service1Endpoint", new AxisEndpoint());
//Hierarchical Services
AxisService as3 = new AxisService("foo/bar/Version");
AxisService as4 = new AxisService("foo/bar/1.0.1/Echo");
as3.addEndpoint("VersionEndpoint", new AxisEndpoint());
as4.addEndpoint("EchoEndpoint", new AxisEndpoint());
ConfigurationContext cc = ConfigurationContextFactory.createEmptyConfigurationContext();
AxisConfiguration ac = cc.getAxisConfiguration();
ac.addService(as1);
ac.addService(as2);