}
JMethod [] method = schemaGenerator.getMethods();
TypeTable table = schemaGenerator.getTypeTable();
PhasesInfo pinfo = axisConfig.getPhasesInfo();
for (int i = 0; i < method.length; i++) {
JMethod jmethod = method[i];
if (!jmethod.isPublic()) {
// no need to expose , private and protected methods
continue;
} else if ("init".equals(jmethod.getSimpleName())) {
continue;
}
AxisOperation operation = Utils.getAxisOperationforJmethod(jmethod, table);
// loading message receivers
try {
MessageReceiver messageReceiver = (MessageReceiver) messageReceiverClass.newInstance();
operation.setMessageReceiver(messageReceiver);
} catch (IllegalAccessException e) {
throw new AxisFault("IllegalAccessException occured during message receiver loading"
+ e.getMessage());
} catch (InstantiationException e) {
throw new AxisFault("InstantiationException occured during message receiver loading"
+ e.getMessage());
}
pinfo.setOperationPhases(operation);
axisService.addOperation(operation);
}
return axisService;
}