13 Replies Latest reply on Feb 12, 2013 4:52 AM by TheNewBee

    unable to get search using RIDC query using idc protocol

      Hi all,

      i am having a strange problem while querying ucm using RIDC.

      when i use idc protocol client connection like below

      IdcClient idcClient = manager.createClient("idc://abc.xyz.com:<port>");

      result is null.

      but when i am using http protocol client connection like below

      IdcClient idcClient = manager.createClient("http://abc.xyz.com:16200/cs/idcplg");
      result set isnt null. i am getting contents

      i am using weblogic user to create connection my code is like below

      IdcClientManager manager = new IdcClientManager ();

      // Create a new IdcClient Connection using idc protocol (i.e. socket connection to Content Server)
      //IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); // this one isn't working

      //for using the web connection - start
      IdcClient idcClient = manager.createClient("http://abc.xyz.com:16200/cs/idcplg");
      IdcContext userContext = new IdcContext("weblogic", "weblogic1");
      DataBinder dataBinder = idcClient.createBinder();
      dataBinder.putLocal("IdcService", "GET_SEARCH_RESULTS");
      dataBinder.putLocal("QueryText","xRegionDefinition <matches> `NEWS_RD` <AND> xWebsiteObjectType <matches> `Data File`");
      ServiceResponse response =
      idcClient.sendRequest(userContext, dataBinder);
      DataBinder responsed = response.getResponseAsBinder();
      DataResultSet myDataResultSet =
      int i = myDataResultSet.getRows().size();
      if (i == 0) {

      System.out.println("No Content found");
      } else {
      System.out.println("content is present");

      } catch (IdcClientException e) {
      System.out.println("Inside exception"+e.getStackTrace());

      i am unable to figure out why its happening.
      i past we i was able to do search using idc also but then many are using same UCM so some one might have changed some configuration that i am unable to figure out