Difference between revisions of "DIS-HLS-Client"
From Gcube Wiki
Line 1: | Line 1: | ||
+ | === Usage Examples === | ||
<pre> | <pre> | ||
ExtendedGSSCredential cred=null; | ExtendedGSSCredential cred=null; | ||
Line 29: | Line 30: | ||
</pre> | </pre> | ||
+ | |||
+ | |||
+ | === How to adapt the existing xQuery to eXist 1.1 === |
Revision as of 13:44, 19 March 2007
Usage Examples
ExtendedGSSCredential cred=null; try { cred = ProxyUtil.loadProxyCredentials("certWithDLRoles"); } catch (IOException e) { e.printStackTrace(); } catch (GSSException e) { e.printStackTrace(); } RunningInstanceManager riManager=null; PropertiesManager pMan =null; try { //null credential and null EPR riManager=DISHLSClient.getRunningInstanceManager(null, null); pMan= DISHLSClient.getPropertiesManager(cred, null); } catch (DISHLSClientException e) { e.printStackTrace(); } String test= null; try { riManager.getEPRsRIFromClassAndName("InformationSystem", "DIS-Registry", "dililigentproject/informationservice/disregistry/DISRegistryFactoryService", null,null); test= pMan.getAllPublishedEntries(cred, null); } catch (DISHLSClientException e) { e.printStackTrace(); } catch (DISHLSCredentialException e) { //community changed e.printStackTrace(); }