*/
public static WebservicesMetaData loadFromVFSRoot(UnifiedVirtualFile root)
{
WebservicesMetaData webservices = null;
UnifiedVirtualFile wsdd = null;
try
{
wsdd = root.findChild("META-INF/webservices.xml");
}
catch (IOException e)
{
//
}
// Maybe a web application deployment?
if (null == wsdd)
{
try
{
wsdd = root.findChild("WEB-INF/webservices.xml");
}
catch (IOException e)
{
//
}
}
// the descriptor is optional
if (wsdd != null)
{
URL wsddUrl = wsdd.toURL();
try
{
InputStream is = wsddUrl.openStream();
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
ObjectModelFactory factory = new WebservicesFactory(wsddUrl);