return file.getAbsolutePath();
}
private ConfigurationDocument createConfigFile(StringToStringMap values, Interface modelItem) {
ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
ConfigurationType config = configDocument.addNewConfiguration();
try {
StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
if (!nsMappings.isEmpty()) {
GlobalType global = config.addNewGlobal();
for (Map.Entry<String, String> namespaceEntry : nsMappings.entrySet()) {
PkgNSType entry = global.addNewPackageNamespace();
entry.setNamespace(namespaceEntry.getKey());
entry.setPackage(namespaceEntry.getValue());
}
}
} catch (Exception e) {
SoapUI.logError(e);
}
WsdlToJavaType wsdl2Java = config.addNewWsdlJava();
String wsdlUrl = getWsdlUrl(values, modelItem);
try {
new URL(wsdlUrl);
wsdl2Java.setLocation(wsdlUrl);