use of org.bimserver.client.soap.SoapBimServerClientFactory in project BIMserver by opensourceBIM.
the class LocalDevSetup method setupSoap.
public static final BimServerClientInterface setupSoap(String address) {
try {
Path home = Paths.get("home");
Path tmp = home.resolve("tmp");
PluginManager pluginManager = LocalDevPluginLoader.createPluginManager(home);
MetaDataManager metaDataManager = new MetaDataManager(tmp);
pluginManager.setMetaDataManager(metaDataManager);
try (BimServerClientFactory factory = new SoapBimServerClientFactory(metaDataManager, address)) {
return factory.create(new UsernamePasswordAuthenticationInfo("admin@bimserver.org", "admin"));
} catch (Exception e) {
LOGGER.error("", e);
}
} catch (PluginException e) {
LOGGER.error("", e);
}
return null;
}
Aggregations