A Generic RIDC Test Program

Many times I have found it useful to use a java program that communicates with WebCenter Content (WCC) using RIDC for testing. I might not have access to the web GUI or need to test a service running as a specific user. In the past I had created a number of "one off" programs that submitted specific services, e.g GET_SEARCH_RESULTS, DOCINFO, etc. Recently I decided to create a generic RIDC test program that could submit any service with the desired parameters based on a configuration file.

The programs gets the following information from the configuration file:

  • WCC connection information (host, port)
  • User to use to run service
  • Service to run
  • Any parameters for the service

The program will make a connection to the WCC server, send the service request, and print the results of the service call using the getResponseAsString() method.

Here is a sample configuration file:

ridc.host=localhost
ridc.port=4444
ridc.user=sysadmin
ridc.idcservice=GET_SEARCH_RESULTS
idcservice.QueryText=dDocType <matches> `Document`
idcservice.SortField=dDocName
idcservice.SortDesc=ASC

There is a readme file included in the zip with instructions for how to configure and run the program. The program takes one command line argument, the configuration file name. The configuration file name is optional and defaults to config.properties.

If you have any suggestions for improvements let me know. Right now it only submits a single service call each time you run it. One enhancement I have already thought about would be to allow you to specify multiple services to tun in the configuration file. You can do that with the current program by having multiple configuration files and running the program multiple times, each with a different configuration file.

You can download the program here.

Comments:

Where does on get those oracle.stellent.ridc.* libraries? Is there a JDeveloper R1 download for the RIDC SDK?

Posted by guest on June 04, 2013 at 11:47 AM CDT #

You can download the RIDC libraries from the WebCenter Content Download page, http://www.oracle.com/technetwork/middleware/webcenter/content/downloads/index.html , under Individual Component Downloads. The direct download link is http://download.oracle.com/otn/content_management/ucm11g/oracle.ucm.ridc.dist-11.1.1.6.0-suite.zip

Posted by Kevin Smith on June 04, 2013 at 12:16 PM CDT #

how to pass in the password to the ridc server/ provider

Thanks

Posted by guest on June 06, 2013 at 02:17 AM CDT #

The RIDC connection over the socket port is treated as trusted so you do not need to pass the password. Only the user is required.

Posted by Kevin Smith on June 06, 2013 at 09:02 AM CDT #

It was very helpful Kevin. As always you share the best of your thoughts.

Posted by guest on August 29, 2013 at 09:14 AM CDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Kevin Smith is a Technical Director in Oracle Consulting's WebCenter practice. He has been working with content management products since 2004 when he joined Stellent.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today