ConfigurationContextFactory builder = new ConfigurationContextFactory();
AxisConfiguration er = builder.buildConfigurationContext(filename)
.getAxisConfiguration();
assertNotNull(er);
ServiceDescription service = er.getService("service2");
assertNotNull(service);
//commentd since there is no service based messgeReceivers
/*MessageReceiver provider = service.getMessageReceiver();
assertNotNull(provider);
assertTrue(provider instanceof RawXMLINOutMessageReceiver);*/
ClassLoader cl = service.getClassLoader();
assertNotNull(cl);
Class.forName("Echo2", true, cl);
assertNotNull(service.getName());
//no style for the service
// assertEquals(service.getStyle(),"rpc");
Flow flow = service.getFaultInFlow();
assertTrue(flow.getHandlerCount() > 0);
flow = service.getInFlow();
assertTrue(flow.getHandlerCount() > 0);
flow = service.getOutFlow();
assertTrue(flow.getHandlerCount() > 0);
assertNotNull(service.getParameter("para2"));
OperationDescription op = service.getOperation(new QName("opname"));
assertNotNull(op);
}