servicesHelper.addActionMappings((Capability) i.next(), serviceName);
}
}
protected void createDescriptor(Document descriptorDocument, Document wsdl, File descriptorFile, Map capabilities, String wsdlRelativePath, int resourceIndex) throws Exception {
DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
//update the wsdl file location
helper.setWsdlFile(wsdlRelativePath + WsdlUtils.getServiceName(wsdl.getDocumentElement()) + DEFAULT_WSDL_NAME_SUFFIX);
//update the service name
helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
//update the name of the class that is the base resource
helper.setJavaResourceClass(getResourceClass(capabilities).getName());
//add the capabilities
for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
helper.addCapability((Capability)i.next());
}
writeToFileCheck(descriptorDocument, descriptorFile);
}