CodeGenConfiguration codegenConfig = new CodeGenConfiguration(fillOptionMap());
codegenConfig.addAxisService(getAxisService(WSDLFileName));
codegenConfig.setWsdlDefinition(wsdlDefinition);
//set the baseURI
codegenConfig.setBaseURI(getBaseUri(WSDLFileName));
new CodeGenerationEngine(codegenConfig).generate();
} catch (Throwable e) {
try {
CodeGenConfiguration codegenConfig = new CodeGenConfiguration(fillOptionMap());
codegenConfig.addAxisService(getAxisService(WSDLFileName));
codegenConfig.setWsdlDefinition(wsdlDefinition);
//set the baseURI
codegenConfig.setBaseURI(getBaseUri(WSDLFileName));
new CodeGenerationEngine(codegenConfig).generate();
} catch (Throwable e1) {
throw new Exception("Code generation failed due to " + e.getLocalizedMessage());
}
} finally {
if (!"xmlbeans".equals(getDatabindingName())) {