Map<String, String> baseURIwsdlNameMap = new HashMap<String, String>();
// add the initial definition to the map
baseURIwsdlNameMap.put(definition.getDocumentBaseURI(), name + ".wsdl");
writeWSDL(definition, name + ".wsdl", new HashMap<String, String>(), baseURIwsdlNameMap);
} catch (Exception e) {
throw new SoapException("WSDL writing failed!", e);
}
}