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);
}
serializeModules(asOnlyModuleList, serviceEle, fac, ns, axisService);
if (axisService.isCustomWsdl()) {
OMElement package2QName = createOMElement(fac, ns,
DeploymentConstants.TAG_PACKAGE2QNAME);
serviceEle.addChild(package2QName);
TypeTable typeTable = axisService.getTypeTable();
if (typeTable != null) {
Map complexSchemaMap = typeTable.getComplexSchemaMap();
Set complexSchemaSet = complexSchemaMap.entrySet();
for (Iterator iterator = complexSchemaSet.iterator(); iterator.hasNext();) {
Map.Entry me = (Map.Entry) iterator.next();
String packageKey = (String) me.getKey();
QName qName = (QName) me.getValue();
OMElement mapping = createOMElement(fac, ns, DeploymentConstants.TAG_MAPPING);
OMAttribute packageAttr = createOMAttribute(fac, ns,
DeploymentConstants.TAG_PACKAGE_NAME, packageKey);
OMAttribute qNameAttr = createOMAttribute(fac, ns,
DeploymentConstants.TAG_QNAME, qName.getNamespaceURI());
mapping.addAttribute(packageAttr);
mapping.addAttribute(qNameAttr);
package2QName.addChild(mapping);
}
}
}
PolicyInclude policyInclude = axisService.getPolicyInclude();
PolicyRegistry registry = policyInclude.getPolicyRegistry();
// services.xml
List policyList = policyInclude.getPolicyElements(PolicyInclude.AXIS_SERVICE_POLICY);
if (!policyList.isEmpty()) {
serializePolicyIncludes(serviceEle, policyList, registry);
}
//TODO - Datalocators