private void processOperations(AxisService axisService,
AxisConfiguration axisConfig,
ArrayList excludeOperations,
ArrayList nonRpcMethods, String dirName) throws Exception {
ORB orb = CorbaUtil.getORB(axisService);
IDL idl = CorbaUtil.getIDL(axisService, orb, dirName);
Parameter orbParam = new Parameter(ORB_LITERAL, orb);
Parameter idlParam = new Parameter(IDL_LITERAL, idl);
axisService.addParameter(orbParam);
axisService.addParameter(idlParam);
// adding name spaces
NamespaceMap map = new NamespaceMap();
map.put(Java2WSDLConstants.AXIS2_NAMESPACE_PREFIX, Java2WSDLConstants.AXIS2_XSD);
map.put(Java2WSDLConstants.DEFAULT_SCHEMA_NAMESPACE_PREFIX, Java2WSDLConstants.URI_2001_SCHEMA_XSD);
axisService.setNamespaceMap(map);
Parameter interfaceNameParam = axisService.getParameter(INTERFACE_NAME);
String interfaceName = (String) ((interfaceNameParam==null) ? null : interfaceNameParam.getValue());
SchemaGenerator schemaGenerator = new SchemaGenerator(idl, interfaceName,
axisService.getSchemaTargetNamespace(),
axisService.getSchemaTargetNamespacePrefix());
schemaGenerator.setExcludeMethods(excludeOperations);
schemaGenerator.setNonRpcMethods(nonRpcMethods);
if (!axisService.isElementFormDefault()) {
schemaGenerator.setElementFormDefault(Java2WSDLConstants.FORM_DEFAULT_UNQUALIFIED);
}
// package to namespace map
schemaGenerator.setPkg2nsmap(axisService.getP2nMap());
Collection schemas = schemaGenerator.generateSchema();
axisService.addSchema(schemas);
axisService.setSchemaTargetNamespace(schemaGenerator.getSchemaTargetNameSpace());
axisService.setTypeTable(schemaGenerator.getTypeTable());
if (Java2WSDLConstants.DEFAULT_TARGET_NAMESPACE.equals(
axisService.getTargetNamespace())) {
axisService.setTargetNamespace(schemaGenerator.getTargetNamespace());
}
Interface intf = (Interface) idl.getInterfaces().get(interfaceName);
Operation[] operations = intf.getOperations();
TypeTable table = schemaGenerator.getTypeTable();
PhasesInfo pinfo = axisConfig.getPhasesInfo();