}
Interface intf = (Interface) idl.getInterfaces().get(interfaceName);
Operation[] operations = intf.getOperations();
TypeTable table = schemaGenerator.getTypeTable();
PhasesInfo pinfo = axisConfig.getPhasesInfo();
for (int i = 0; i < operations.length; i++) {
Operation corbaOperation = operations[i];
String opName = corbaOperation.getName();
if (excludeOperations != null && excludeOperations.contains(opName)) {
continue;
}
AxisOperation operation = axisService.getOperation(new QName(opName));
// if the operation there in services.xml then try to set it schema element name
if (operation != null) {
AxisMessage inMessage = operation.getMessage(
WSDLConstants.MESSAGE_LABEL_IN_VALUE);
if (inMessage != null) {
inMessage.setName(opName + Java2WSDLConstants.MESSAGE_SUFFIX);
QName complexSchemaType = table.getComplexSchemaType(opName);
inMessage.setElementQName(complexSchemaType);
if (complexSchemaType != null) {
axisService.addMessageElementQNameToOperationMapping(complexSchemaType,
operation);
}
}
DataType returnType = corbaOperation.getReturnType();
if (returnType != null && !CorbaUtil.getQualifiedName(returnType).equals(VOID)) {
AxisMessage outMessage = operation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
QName qNamefortheType = table.getQNamefortheType(opName + RESPONSE);
outMessage.setElementQName(qNamefortheType);
if (qNamefortheType != null) {
axisService.addMessageElementQNameToOperationMapping(qNamefortheType, operation);
}
outMessage.setName(opName + RESPONSE);
}
if (corbaOperation.hasRaises()) {
List extypes = corbaOperation.getRaises();
for (int j = 0; j < extypes.size(); j++) {
AxisMessage faultMessage = new AxisMessage();
ExceptionType extype = (ExceptionType) extypes.get(j);
String exname = extype.getName() ;
if(extypes.size()>1){
faultMessage.setName(opName + FAULT + j);
} else{
faultMessage.setName(opName + FAULT);
}
faultMessage.setElementQName(
table.getComplexSchemaType(exname + FAULT));
operation.setFaultMessages(faultMessage);
}
}
} else {