Collection axisServiceLevelEngagedModuleCollection = axisService
.getEngagedModules();
List aoOnlyModuleList = new ArrayList();
for (Iterator iterator1 = operationLevelEngagedModulesCollection.iterator(); iterator1
.hasNext();) {
AxisModule axisModule = (AxisModule) iterator1.next();
if (axisServiceLevelEngagedModuleCollection.contains(axisModule)) {
continue;
}
aoOnlyModuleList.add(axisModule);
}
serializeModules(aoOnlyModuleList, operationEle, fac, ns, operation);
Map axisMessagesMap = new AxisMessageLookup().lookup(operation);
Set axisMessagesSet = axisMessagesMap.entrySet();
for (Iterator iterator1 = axisMessagesSet.iterator(); iterator1.hasNext();) {
Map.Entry me = (Map.Entry) iterator1.next();
String lableKey = (String) me.getKey();
AxisMessage axisMessage = (AxisMessage) me.getValue();
OMElement axisMessageEle = createOMElement(fac, ns,
DeploymentConstants.TAG_MESSAGE);
OMAttribute axisMessageLableAttr = createOMAttribute(fac, ns,
DeploymentConstants.TAG_LABEL, lableKey);
axisMessageEle.addAttribute(axisMessageLableAttr);
List axisMessageParameterList = axisMessage.getParameters();
serializeParameterList(axisMessageParameterList, axisMessageEle, fac, ns);
PolicyInclude policyInclude = operation.getPolicyInclude();
PolicyRegistry registry = policyInclude.getPolicyRegistry();
List policyList = policyInclude
.getPolicyElements(PolicyInclude.AXIS_MESSAGE_POLICY);
if (!policyList.isEmpty()) {
serializePolicyIncludes(axisMessageEle, policyList, registry);
}
}
PolicyInclude policyInclude = operation.getPolicyInclude();
PolicyRegistry registry = policyInclude.getPolicyRegistry();
List policyList = policyInclude
.getPolicyElements(PolicyInclude.AXIS_OPERATION_POLICY);
if (!policyList.isEmpty()) {
serializePolicyIncludes(operationEle, policyList, registry);
}
}
}
List serviceParameterList = axisService.getParameters();
serializeParameterList(serviceParameterList, serviceEle, fac, ns);
//service level engaged modules.
Collection serviceEngagedModuleCollection = axisService.getEngagedModules();
AxisDescription parent = axisService.getParent();
AxisServiceGroup asg = (AxisServiceGroup) parent;
Collection asgEngagedModulesCollection = asg.getEngagedModules();
List asOnlyModuleList = new ArrayList();
for (Iterator iterator = serviceEngagedModuleCollection.iterator(); iterator.hasNext();) {
AxisModule axisModule = (AxisModule) iterator.next();
if (asgEngagedModulesCollection.contains(axisModule.getName())) {
continue;
}
asOnlyModuleList.add(axisModule);
}