CodeGenConfiguration codegenConfig = new CodeGenConfiguration(optionsMap);
codegenConfig.addAxisService(service);
//set the wsdl definision for codegen config for skeleton generarion.
WSDLPropertyReader reader = new WSDLPropertyReader();
reader.readWSDL(wsdlSelectionPage.getFileName());
Definition wsdlDefinition = reader.getWsdlDefinition();
codegenConfig.setWsdlDefinition(wsdlDefinition);
//set the baseURI
codegenConfig.setBaseURI(generator.getBaseUri(wsdlSelectionPage.getFileName()));