}
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( String namespace : nsMappings.keySet() )
{
PkgNSType entry = global.addNewPackageNamespace();
entry.setNamespace( namespace );
entry.setPackage( nsMappings.get( namespace ) );
}
}
}
catch( Exception e )
{
SoapUI.logError( e );
}
WsdlToJavaType wsdl2Java = config.addNewWsdlJava();
String wsdlUrl = getWsdlUrl( values, modelItem );
try
{
new URL( wsdlUrl );