// Import needed classes from Remote Intradoc Jar import oracle.stellent.ridc.IdcClientManager import oracle.stellent.ridc.IdcContext // Create the client for request/response client = (new IdcClientManager()).createClient("idc://localhost:4444") // Create a user/security context userContext = new IdcContext("sysadmin") // Setup the request req = client.createBinder() req.putLocal("IdcService", "PING_SERVER") // Get the response resp = client.sendRequest(userContext, req).getResponseAsBinder() // Use the response, should say "Response: you are logged in as 'sysadmin'" println "Response: ${resp.getLocal("StatusMessage")}" // Wrap it up! println "Done"