if(log.isDebugEnabled()) log.debug("START buildMetaData: [service=" + serviceQName + "]");
try
{
ResourceLoaderAdapter vfsRoot = new ResourceLoaderAdapter(loader);
UnifiedMetaData wsMetaData = new UnifiedMetaData(vfsRoot);
wsMetaData.setClassLoader(loader);
ServiceMetaData serviceMetaData = new ServiceMetaData(wsMetaData, serviceQName);
wsMetaData.addService(serviceMetaData);
serviceMetaData.setWsdlLocation(wsdlURL);
WSDLDefinitions wsdlDefinitions = serviceMetaData.getWsdlDefinitions();
if (javaWsdlMapping != null)
{
URL mappingURL = new URL(Constants.NS_JBOSSWS_URI + "/dummy-mapping-file");
if (usrMetaData != null && usrMetaData.getMappingLocation() != null)
{
mappingURL = usrMetaData.getMappingLocation();
}
wsMetaData.addMappingDefinition(mappingURL.toExternalForm(), javaWsdlMapping);
serviceMetaData.setMappingLocation(mappingURL);
}
if (securityConfig != null)
{
serviceMetaData.setSecurityConfiguration(securityConfig);
setupSecurity(securityConfig, wsMetaData.getRootFile());
}
buildMetaDataInternal(serviceMetaData, wsdlDefinitions, javaWsdlMapping, usrMetaData);
// eagerly initialize
wsMetaData.eagerInitialize();
if(log.isDebugEnabled()) log.debug("END buildMetaData: " + wsMetaData);
return serviceMetaData;
}
catch (RuntimeException rte)