Executing PNE_SAVE_QUERY service using RIDC

Hi,
I am trying to save a search query through RIDC. I am using service PNE_SAVE_QUERY. I am passing the QueryText parameter. Not getting any error or exception in eclipse console. But not able to see the given query saved in UCM. I am trying to see the query in Browse contents ->my saved queries.
I am creating idcbinder and passing parameter. Is this method correct? Where i can see the saved query through RIDC in UCM and also want to know in which table saved query will be stored in database.
Using UCM 11g
database: oracle 11g
Thanks in advance.

Hi ,
Code snippet to get PNE_SAVE_QUERY working is as follows :
dataBinder.putLocal("IdcService", "PNE_SAVE_QUERY");
dataBinder.putLocal("topicString1","addMruRow:pne_portal:SavedQueries:queryTitle,queryText,sortField,sortOrder,resultCount,ftx,SearchQueryFormat,folderChildren");
dataBinder.putLocal("topicString2","updateKeyByName:pne_portal:touchCacheKey:touchCacheKey");
dataBinder.putLocal("topicsString3","");
dataBinder.putLocal("numTopics","2");
dataBinder.putLocal("queryText","dDocTitle <starts> `Test`");
dataBinder.putLocal("queryTitle","FromRIDC-2");
dataBinder.putLocal("sortField","dInDate");
dataBinder.putLocal("sortOrder","Desc");
dataBinder.putLocal("SearchQueryFormat","Universal");
dataBinder.putLocal("Page","HOME_PAGE");
dataBinder.putLocal("resultCount","20");
dataBinder.putLocal("ftx","");
dataBinder.putLocal("folderChildren","");
dataBinder.putLocal("touchCacheKey","");
Try with this and see if the queries are saved .
Hope this helps .
In the topicString1 not all the parameters are necessary . So a modified way of doing this would be as follows :
dataBinder.putLocal("topicString1","addMruRow:pne_portal:SavedQueries:queryTitle,queryText")
dataBinder.putLocal("topicString2","updateKeyByName:pne_portal:touchCacheKey:touchCacheKey");
dataBinder.putLocal("topicsString3","");
dataBinder.putLocal("numTopics","2");
dataBinder.putLocal("queryText","dDocTitle <starts> `Test`");
dataBinder.putLocal("queryTitle","FromRIDC-2");
dataBinder.putLocal("Page","HOME_PAGE");
dataBinder.putLocal("touchCacheKey","");
Thanks,
Srinath
Edited by: Srinath Menon on Mar 29, 2013 9:57 AM

Similar Messages

  • How to retreive resultset of WCM_PLACEHOLDER service using ridc api

    Hi,
       I am trying to call WCM_PLACEHOLDER  service using ridc api. I was able to set dataFileDocName and templateID, but was unable to retreive the result set, since I am not sure with which name should I have to search in the result set. AS like GETSEARCHRESULTS i tried with "SearchResults" but not success. Sample code below I tried.
    DataBinder dataBinder = serviceResponse.getDataBinder();
    dataBinder.getResultSet("SearchResults"); ----> This is the line that is not working as looks like I need to replace "SearchResults" with something else.
    I tried googling this for, but couldn't find useful information any where.
    Appreciate your help here.
    Thanks,
    Kesava.

    Pl do not post duplicates - https://forums.oracle.com/thread/2562089

  • How to get the resultset of WCM_PLACEHOLDER service using ridc

    Hi,
       I am trying to call WCM_PLACEHOLDER  service using ridc api. I was able to set dataFileDocName and templateID, but was unable to retreive the result set, since I am not sure with which name should I have to search in the result set. AS like GETSEARCHRESULTS i tried with "SearchResults" but not success. Sample code below I tried.
    DataBinder dataBinder = serviceResponse.getDataBinder();
    dataBinder.getResultSet("SearchResults"); ----> This is the line that is not working as looks like I need to replace "SearchResults" with something else.
    I tried googling this for, but couldn't find useful information any where.
    Appreciate your help here.
    Thanks,
    Kesava.

    Hi Kesava ,
    WCM_PLACEHOLDER - http://docs.oracle.com/cd/E28280_01/doc.1111/e10615/c11_ss_services.htm#SSTRF503
    This is not a search service but it is used to evaluates a placeholder, allowing the contents of the placeholder to be retrieved directly from anywhere the Oracle Content Server can be seen from.
    Code snippet to retrieve the details using RIDC is as follows :
    // Databinder for  placeholder request
                DataBinder dataBinder = idcClient.createBinder();
                dataBinder.putLocal("IdcService", "WCM_PLACEHOLDER");
                dataBinder.putLocal ("dataFileDocName","<content id of Contributor Data File>");
                dataBinder.putLocal("templateID" ,"<Content id of Region Template>");
    // Write the data binder for the request to stdout
                serializer.serializeBinder (System.out, dataBinder);
    // Send the request to Content Server
                ServiceResponse response = idcClient.sendRequest(userContext,dataBinder);
    // Get the data binder for the response from Content Server
                DataBinder responseData = response.getResponseAsBinder();
    // Write the response data binder to stdout
                serializer.serializeBinder (System.out, responseData);
    //Retrieve the data file text from LocalData Section :
                DataObject localData = responseData.getLocalData();
    //Printing the value which is required to be displayed
                System.out.println ("Placeholder Content / text is    : " + responseData.getLocal("placeholderContent"));
    // Retrieve the SearchResults ResultSet from the response
                DataResultSet resultSet = responseData.getResultSet("DOC_INFO");
    // Iterate over the ResultSet, retrieve properties from the content items
                for (DataObject dataObject : resultSet.getRows ()) {
                    System.out.println ("Title is: " + dataObject.get ("dDocTitle"));
                    System.out.println ("ContentID is : " + dataObject.get ("dDocName"));
                    System.out.println ("######");
    Hope this helps.
    Thanks,
    Srinath

  • Open custom page after executing PNE_SAVE_QUERY

    Hello,
    I want to display custom page after executing PNE_SAVE_QUERY service. How to do that?
    Thanks!

    Create a component. Add a template to that component. When you create the template you give it a name, something like MY_CUSTOM_PAGE. Now you need to set the Page variable to have the name of your template. For this you have a least two options:
    1. You could override the PNE_SAVE_QUERY service in your component and set the variable in there. That would override whatever value Page has for every request to save query.
    2. You could find where the call to PNE_SAVE_QUERY is happening and where the Page variable is getting set and override that dynamic html include and set Page there
    Either way, you need to set Page to the name of the template.

  • Error while executing webservice composed using service composer

    Hello Experts,
    We have composed a service using service composer DC by consuming PI soap interfaces.(SAP NW 7.4 SP07)
    Composed Webservice works perfectly fine for some time then it throws folowing error when tested from wsnavigator -
    any idea what could be the problem??
    Thanks in advance..
    Priya

    Try not changing the schema names when creating the web services. And if you are changing it, make sure you change it everywhere required.
    This error is thrown when the server can't find a specified schema class.
    But if you mention that the service works fine for some time and later crashes, makes the scene a little fishy.
    Please log on to http://<hostname>:<portnumber>/nwa/logs immediately after this failure occurs and check the logs for a detailed error trace.

  • Creation of folder structure using RIDC code

    Hi,
    Can anyone help me out in creating a folder structure in UCM using RIDC code by using IDC services.
    When i am trying to create folder in UCM i am getting this error :oracle.stellent.ridc.protocol.ServiceException: Unable to display virtual folder information. Unable to open folder.
    my snippet is given below:
    public boolean createSubmission(String journalName,
    String submissionID) throws Exception {
    IdcClientManager manager = new IdcClientManager();
    IdcClient idcClient;
    try {
    idcClient = manager.createClient("idc://localhost:4444");
    IdcContext userContext = new IdcContext("weblogic", "welcome1");
    String PATH="/Contribution Folders";
    DataBinder dataBinder = idcClient.createBinder();
    dataBinder.putLocal("IdcService", "COLLECTION_NEW");
    dataBinder.putLocal("hasParentCollectionID", "true");
    dataBinder.putLocal("dCollectionName", submissionID);
    dataBinder.putLocal("dParentCollectionID",this.getFolderIdFromPath(idcClient,userContext,PATH +"/"+journalName));
    dataBinder.putLocal("dCollectionOwner", "sysadmin");
    ServiceResponse response =idcClient.sendRequest(userContext, dataBinder);
    DataBinder serverBinder = response.getResponseAsBinder();
    System.out.println("dCollectionID.... "+serverBinder.getLocal("dCollectionID"));
    } catch (IdcClientException e) {
    e.printStackTrace();
    return false;
    private String getFolderIdFromPath(IdcClient idcClient,
    IdcContext userContext, String path) {
    String folderId = null;
    // Long folderId =0L;
    try {
    DataBinder dataBinder = idcClient.createBinder();
    dataBinder.putLocal("IdcService", "COLLECTION_INFO");
    dataBinder.putLocal("hasCollectionPath", "true");
    dataBinder.putLocal("dCollectionPath", path);
    ServiceResponse response =
    idcClient.sendRequest(userContext, dataBinder);
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("PATH");
    DataObject dataObject =
    resultSet.getRows().get(resultSet.getRows().size() - 1);
    folderId = dataObject.get("dCollectionID");
    System.out.println("folderId... "+folderId);
    } catch (IdcClientException e) {
    e.printStackTrace();
    return folderId;
    Thanks in advance.

    Hi,
    Is your problem solved??
    please share solution..
    I am facing same issue..
    While running custom code for creating virtual folder.
    public class createFolders
        public createFolders ()
            super();
        storedValue obj=new storedValue();
        public String name=null;
      private String getFolderIdFromPath(IdcClient idcClient,
       IdcContext userContext, String path) {
       String folderId = null;
       // Long folderId =0L;
       try {
       DataBinder dataBinder = idcClient.createBinder();
       dataBinder.putLocal("IdcService", "COLLECTION_INFO");
       dataBinder.putLocal("hasCollectionPath", "true");
       dataBinder.putLocal("dCollectionPath", path);
       ServiceResponse response =
       idcClient.sendRequest(userContext, dataBinder);
       DataBinder serverBinder = response.getResponseAsBinder();
       DataResultSet resultSet = serverBinder.getResultSet("PATH");
       DataObject dataObject =
       resultSet.getRows().get(resultSet.getRows().size() - 1);
       folderId = dataObject.get("dCollectionID");
       System.out.println("folderId... "+folderId);
       } catch (IdcClientException e) {
       e.printStackTrace();
      return folderId;
      public void createchild1(String folderName)
           try
               if(!(obj.getProject()==null))
               IdcClientManager clientManager1 = new IdcClientManager();
               IdcClient client1 =clientManager1.createClient("idc://localhost:4444");
               IdcContext userContext1 = new IdcContext("weblogic", "welcome1");
               if (!(userContext1 == null))
                   DataBinder binder1 = client1.createBinder();
                   client1.sendRequest(userContext1 , binder1);
              String PATH;
              PATH = "/Contribution Folders/IDFC" +"/"+folderName;
              System.out.println(PATH);
                   binder1.putLocal("dSecurityGroup", "Public");
                   binder1.putLocal("dOwner", "weblogic");
                   binder1.putLocal("IdcService", "COLLECTION_ADD");
                 binder1.putLocal("HAS_COLLECTION_PATH", "true");
                 binder1.putLocal("hasParentCollectionID", "true");
                 //binder.putLocal("dCollectionInherit","0");
                 String id = this.getFolderIdFromPath(client1,userContext1,PATH);
                 System.out.println("ID: " + id);
                 binder1.putLocal("dParentCollectionID", this.getFolderIdFromPath(client1,userContext1,PATH)); 
                   binder1.putLocal("DCOLLECTIONNAME", obj.getProject());
                   System.out.println("FolderName" + obj.getProject());
                   System.out.println("userContext is:" + userContext1);
                   System.out.println("dataBinder is:" + binder1);
                   ServiceResponse resp1 = client1.sendRequest(userContext1, binder1);
                   System.out.println("response is:" + resp1);
                   DataBinder serverBinder = resp1.getResponseAsBinder();
               catch (Exception ex)
               ex.printStackTrace();
    I am getting following error..
    !csUserEventMessage,weblogic,CIS!$!csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
    intradoc.common.ServiceException: !csCollectionUnableToCreateCollection!csCollectionFolderHasNoName
    *ScriptStack COLLECTION_ADD
    3:addCollectionInCollection,**no captured values**
            at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
            at intradoc.server.Service.buildServiceException(Service.java:2326)
            at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
            at collections.CollectionUserHandler.addCollectionInCollection(CollectionUserHandler.java:638)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
            at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
            at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
            at intradoc.server.Service.doCodeEx(Service.java:603)
            at intradoc.server.Service.doCode(Service.java:575)
            at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
            at intradoc.server.Service.doAction(Service.java:547)
            at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
            at intradoc.server.Service.doActions(Service.java:542)
            at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
            at intradoc.server.Service.executeActions(Service.java:528)
            at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
            at intradoc.server.Service.doRequest(Service.java:1956)
            at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
            at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
            at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Any help is appreciated...
    Thanks in advance

  • Custom Response Parameters using RIDC

    Hi All,
    I have a custom service called "UPDATE_USER_PROFILE" that will update the record if it exist already, or inserts new record if it doesn't exist (I am using a merge query fort this purpose) into the User_Profile database table. When i am calling this service from RIDC code, I want the users to get some response if the action is successful or not. I am thinking if it is possible using RIDC to define custom response parameters. When i am using the getResponseAsBinder method the response i get is not what i want. I want to display some status message regarding the action. Someone please help me.
    Thanks in advance,
    Raga Deepthi.

    I solved it!!!
    binder.putLocal("statusCode","0");
    binder.putLocal("statusMessage","Successful");
    binder.putLocal("statusCode","1");
    binder.putLocal("statusMessage","UNSuccessful");
    I have created a function into the service and executed the query there. If the query is executed successfully am making it successful otherwise unsuccessful.

  • Error while running Java Application as NT Service using INSTSRV

    Hi,
    I am trying to run Java Application as an NT Service using Instsrv.But when i start the service It works fine.when i stop the service it does not stop and it continues to run the application.When i uninstall the service It still executes.When i reboot my machine it stops .Is there any solutions for this.Any help is greatly appreciated.
    Thanks.

    I actually had similar situation. I used autoexnt.ext tool (it creats a service that can be called when rebooting) to start a batch file which in turn run a java program. After the program starts, it can only be stopped through Task Manager or Ctrl-C at the dos window (it creats a dos window) or close the window directly. Stopping the service has nothing to do with the program. I feel this is reasonable because the only function of the service here is to start the application. After that the service does not (very likely) have any connection with the program so whatever you do with the service will not affect the program itself. I wonnder if you are in the same situation.
    PC

  • Error while executing the service - The service method not defined error

    Hi,
    I am using Oracle UCM Content server 11g. I have created a custom service using component wizard. I have provided class name and method correct in the service declarations. The method should return manipulated Revision Label value. I am executing the service as a direct service and not subservice from a resource file using the following command.
    <$executeService("servicename")$>
    The serice is getting called but I am getting the following error log
    Event generated by user 'weblogic' at host 'localhost:16200'. Unable to execute service Edit_Revision_Label and function generateRevLabelInfo.
    The service method 'generateRevLabelInfo' is not defined. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !csUserEventMessage,weblogic,localhost:16200!$!csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$!csMethodNotDefined,generateRevLabelInfo
    intradoc.common.ServiceException: !csServiceDataException,Edit_Revision_Label,generateRevLabelInfo!$
    *ScriptStack Edit_Revision_Label
    Edit_Revision_Label,dDocName=3:generateRevLabelInfo,dDocName=
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2260)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
    at intradoc.server.Service.createServiceException(Service.java:2249)
    at intradoc.server.ServiceRequestImplementor.handleActionException(ServiceRequestImplementor.java:1766)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1716)
    at intradoc.server.Service.doAction(Service.java:477)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:472)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
    at intradoc.server.Service.executeSubServiceCode(Service.java:3866)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
    at intradoc.server.Service.executeServiceEx(Service.java:3861)
    at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
    at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3856)
    at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
    at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
    at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
    at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
    at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
    at intradoc.server.Service.buildResponsePage(Service.java:1267)
    at intradoc.server.Service.doResponse(Service.java:2076)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
    at intradoc.server.Service.doRequest(Service.java:1890)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1343)
    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
    at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
    at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
    at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
    at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: intradoc.data.DataException: !csMethodNotDefined,generateRevLabelInfo
    at intradoc.server.Service.doCodeEx(Service.java:561)
    at intradoc.server.Service.doCode(Service.java:505)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:477)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:473)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1323)
    at intradoc.server.Service.executeSubServiceCode(Service.java:3867)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
    at intradoc.server.Service.executeServiceEx(Service.java:3862)
    at intradoc.server.ServiceRequestImplementor.executeSafeServiceInNewContext(ServiceRequestImplementor.java:1231)
    at intradoc.server.Service.executeSafeServiceInNewContext(Service.java:3857)
    at intradoc.server.script.ServiceScriptExtensions.evaluateFunction(ServiceScriptExtensions.java:269)
    at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)
    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)
    at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)
    at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1227)
    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)
    at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)
    at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)
    at intradoc.server.Service.buildResponsePage(Service.java:1267)
    at intradoc.server.Service.doResponse(Service.java:2076)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)
    at intradoc.server.Service.doRequest(Service.java:1890)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1346)
    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1715)
    at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
    at sun.reflect.GeneratedMethodAccessor1173.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:88)
    at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
    at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
    at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1600)
    at idcservlet.IdcFilter.doFilter(IdcFilter.java:352)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Please let me know the suggestions and the resolution on the above issue
    Thanks in advance,
    Sarang

    Hirva wrote:
    Trying to get access to the sun convergence we get this error
    "Error while executing the service request : : Login to Mail Service failed " after a look around we found out that the problem was that some one had deleted the msg-admin-server user from the ldap.What else was "accidentally" deleted? Do you have audit logging enabled for Directory Server?
    but still doesnt work? where else should we look?Messaging Server also creates a msg-admin group ("cn=Messaging End User Administrators Group") which is used for Directory Server ACI purposes. You can see the entries that Messaging Server added during initial configuration by reviewing the *.ldif files under the following directory (MS7.0 32bit):
    /var/opt/sun/comms/messaging/install/Regards,
    Shane.

  • How to deal with "Error 1001. The specified service already exists" when install a service using installer package?

    Hi everybody,
    I wrote a "Class Library" project which is a service using Visual Stodio 2008 recently, then tried to use a Visual Studio 2008
    Setup Project to install it.
    Here is what I did for the "Class Library":
    1. Finish the program.cs, Service.cs
    2. Add Installer
    3. Change the serviceInstaller so that "StartType" to be Aotumatic
    4. Change the ServiceProcessInstaller2 so that "Account" to be LocalSystem
    5.
    6. Click in F5 (Start Debugging)
    Here is what I did for the Setup Project:
    1. Add the exe file built from the "Class Library" project to the Application Folder
    2. On the Custom Action Editor, add the exe file from 1 to Install and Commit
    3. Change the property of the project so that "RemovePreviousVersion" to be true
    4. Click on F6(Build Solution)
    Then I tried to run the msi file from the built of the Setup Project. Because I modified the two projects serveral times, I uninstalled the Class Library using "Control Panel->Add or Remove Programs" before I reinstall. Two things I notived:
    1. After unstall, the registry was not cleaned up about the installed program
    2. After several rounds install/uninstall, I got "Error 1001. The specified service already exists"
    My questions are:
    1. How to cleanup the registry when uninstall a program?
    2. How to deal with the "Error 1001. The specified service already exists"?
    3. Did I do anytbing wrong with the "Class Library" or the "Setup Project"?
    Thanks a lot!
    Helen

    Hi Simon, not a problem!
    I spent some more time on this and here are few more notes:
    it is called Major Upgrade, when you are installing new version of the product upon a previous one and
    MSI supports 2 strategies:
    Strategy 1. Install a new version and uninstall previous one. (Install a new version right upon previously installed version (file merging is performed based on dll version number) and the delete previously
    installed files)
    Strategy 2. Uninstall previous version and install a new one (Delete all previous files and install from scratch new files.)
    From the first look it seems that 1st strategy is weird and buggy. But, remember, MSI is great because it's transactional!!! That means that if once some of the phases (Installation, Uninstallation, Rollback, Comit) fails, your machine
    will be reverted to the previous state and it'll be still functional. 
    Let's consider both strategies:
    Consider you have installed product_v1.msi and you want to install product_v2.msi.
    Strategy 1
    1. MSI engine copies files from Product_v1 directory to TEMP directory
    2. MSI engine merges files based on the assembly version (between v1 and v2)
    3. Once merging is completed successfully it removes files in TEMP (RemoveExistingProducts  action triggers it) and you got product_v2 installed, otherwise if it fails MSI engine revert machine to V1 and copies previous files from TEMP.
    Strategy 2
    1. MSI engine tottaly removes all files from v1.
    2. MSI engine installs v2 files and if something goes wrong you cannot revert back, because RemoveExistingProducts  allready worked out and MSI doesn't have files to revert machine back
    I recommend to everybody to use Strategy 1 and leverage MSI transaction functionality. And you can set this strategies by defining sequence of RemoveExistingProducts action. See more info
    here.  So, I think it's not even a bug in VS as I said in the upper post it is default recommened behaviour.
    AND, you got "Error 1001. The specified service already exists"
    because if we follow Strategy 1 MSI engine tries to install Windows Service on top of the existing service and OF COURSE it fails MSI engine (StopServices, DeleteServices actions are executed before actual
    installation and  they look at ServiceControl table). In order to stop service first and delete them you have to fill ServiceContol table of the MSI (and then StopServices, DeleteServices actions will recognize what to they have to stop
    and delete), like this:
    *clip*clip*clip*
    ' see http://msdn.microsoft.com/en-us/library/windows/desktop/aa371634(v=vs.85).aspx for more info
    ' Update the Service Entry to stop and delete service while uninstalling
    query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD_Service', 'Service name', '160', '', '1', '"
    + componentName + "')"
    Set view = database.OpenView(query)
    : CheckError
    view.Execute : CheckError
    ' Update the Service Entry to stop and delete service while installing
    query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD2_Service', 'Service name', '10', '', '1', '"
    + componentName + "')"
    Set view = database.OpenView(query)
    : CheckError
    view.Execute : CheckError
    *clip*clip*clip*
    We can uninstall service first by following Strategy 2, but then we lose transactional support.
    So, Simon did I encourage you to change your code a bit?:)
    And, btw, if you don't want to change the strategy, please don't rely on SequenceID in MSI table, it can be change, you have to get the at the runtime.
    Hope it will help to everybody!
    See also more advanced explanation of how MSI works
    here.
    Truly yours, Marat

  • I have a problem when running my own EJB as a TUXEDO service using WTC.

    Hello,
    I have a problem when running my own EJB as a TUXEDO service using WTC. I am using TUXEDO 8.1 and WL 9.1.
    When I am trying to run my own EJB as a TUXEDO service error appears.
    TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not find service TOUPPER
    at weblogic.wtc.gwt.WTCService.getImport(WTCService.java:4988)
    at weblogic.wtc.gwt.TuxedoConnection.getImport(TuxedoConnection.java:303)
    at weblogic.wtc.gwt.TuxedoConnection.tpcall(TuxedoConnection.java:1302)
    at examples.MyTestSessionBean.Toupper(MyTestSessionBean.java:102)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:61)
    at net.roseindia.web.servlets.SessionTestServlet.doGet(SessionTestServlet.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    e8
    10
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NullPointerException
    at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:713)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:681)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:447)
    at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:75)
    at net.roseindia.web.servlets.SessionTestServlet.doGet(SessionTestServlet.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: java.lang.NullPointerException
    at examples.MyTestSessionBean.Toupper(MyTestSessionBean.java:130)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:61)
    ... 15 more
    Any clue on this.
    With Regards,
    MVS

    If you are trying to create a Tuxedo service in Java using WTC you need to develop an EJB that implements the TuxedoService interface and register its home in JNDI so WTC can look it up. Once that is done you can then export the service to a remote domain in the WTC configuration.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • How to find no of docs in a library using RIDC

    Hi ,
    I want to generate a report which will give the result like"
    "No of documents uploaded in a particular library for the month of january"
    How can i achieve it using RIDC.
    Thanks,
    Chely

    My code is below,
    It is not giving the docs within the "ESD" libray only.sometimes it is showing sockettimeout exception
    public static void main(String[] args)
         try{
         final IdcClientManager idcManager = new IdcClientManager();
         final IdcClient idcClient = idcManager.createClient("http://172.20.90.172:16200/cs/idcplg");
         final IdcContext idcContext = new IdcContext("cbohra001c", "Feb2013#");
         final DataBinder binder = idcClient.createBinder();
         // populate the binder with the parameter
         String vars="ESD";
         binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    binder.putLocal("QueryText","dSecurityGroup <substring> <qsch>"+vars+"</qsch>");
    binder.putLocal("ResultCount", "10");
         // execute the request
         ServiceResponse response = idcClient.sendRequest (idcContext, binder);
         // get the binder
         DataBinder serverBinder = response.getResponseAsBinder ();
         DataResultSet resultSet = serverBinder.getResultSet ("SearchResults");
         // loop over the results
         for (DataObject dataObject : resultSet.getRows ()) {
              System.out.println ("Title is: " + dataObject.get ("dDocTitle"));
              System.out.println ("Author is: " + dataObject.get ("dDocAuthor"));          
              System.out.println ("SG is: " + dataObject.get ("dSecurityGroup"));
         catch (Exception ex) {
    ex.printStackTrace();}
    Edited by: Chely on Feb 26, 2013 11:53 PM

  • Passing table to web service - using javascript

    Hi All,
    I need to pass table structure to web service using data connection.
    I dont know how to accesss the request node and create table and pass data to it.
    Request you all to help me to achievev this functionality.
    A long needs to split of 50 characters each. Then create a new instance for request node table structure assign the values.
    All this needs to be done using CODE i.e javasript
    how to do this ???
    Regards,
    Aditya Deshpande

    HIi,
    Let me explain the scenario once more:
    Scenario:
    Pdf has two Text edit field and one button. Where the end user would enter the values.
    The PDF is integrated with Web service for Offline scneario.
    Field 1 is a notification number.
    Field 2 is description - unlimited entry into PDF.
    Button: is used to execute the web service.
    It is done using the blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID0394564950DB01118597046218481719End?blog=/pub/wlg/7588
    Field1 is mapped to corresponding field in web service by IMPORT/EXPORT bindings.
    Problem:
    Field 2 is a text field. But this data has to be passed to web service as table. The web service has a table structure.
    Hence the text in the Field 2 has to be split into 100 characters each and set into table rows.
    The Strucutre definition in the data connection is:
    - Item
            - TDFORMAT
            - TDLINE
    Since I need to split the text and load.I felt this needs to be done using code ( script ).
    I do NOT know how to do it using CODE. Please help ME!!!!!!!!
    If there any other way please let me know. I am also not sure which would be best way of doing it.
    PLEASE HELP ME!!!
    Regards,
    Aditya Deshpande.

  • Performance improvement using RIDC

    Hi all,
    which one is faster to get the images??
    Actually i am using RIDC to get the folder information ,once i got it i m passing docId to the GetFileById webservice to get the image/File object..THis is bit slow...can give any other suggestions to improve my performance.
    below is my code for ur reference..
    //To get the folder information
    IdcClientManager manager = new IdcClientManager();
    IdcClient idcClient = manager
    .createClient(ucmUrl);
    IdcContext userContext = new IdcContext(ucmUserName,ucmPassword);
    DataBinder dataBinder = idcClient.createBinder();
    dataBinder.putLocal("IdcService", "COLLECTION_GET_CONTENTS");
    dataBinder.putLocal("hasCollectionPath", "true");
    dataBinder.putLocal("dCollectionPath", folderPath);
    ServiceResponse response = idcClient.sendRequest(userContext,
    dataBinder);
    DataBinder serverBinder = response.getResponseAsBinder();
    DataResultSet resultSet = serverBinder.getResultSet("CONTENTS");
    if (resultSet != null) {
    for (DataObject dataObject1 : resultSet.getRows()) {
    String fileId = dataObject1.get("dID");
    //Calling web service to get the blob data etc..
    GetFileByID request = objFactory.createGetFileByID();
    request.setDID(new Integer(fileId));
    request.setRendition("Primary");
    soapAct = new SoapActionCallback(soapAction);
    //call the
    resp = (GetFileByIDResponse) webServiceTemplate
    .marshalSendAndReceive(request, soapAct);
    //Response
    fileResponse = resp.getGetFileByIDResult();
    //Once got the file data,displaying blob data in the web page etc...
    }

    Why not do a search:
    public String getURL(String docName)
            DataBinder binder = idcClient.createBinder();
            binder.putLocal("IdcService", "GET_SEARCH_RESULTS");
            binder.putLocal("QueryText", "dDocName <matches> `" + docName + "`");
            binder.putLocal("ResultCount", "1");
            ServiceResponse response =
                idcClient.sendRequest(new IdcContext(ucmContext.getUsername(),
                                                     ucmContext.getPassword()),
                                      binder);
            DataBinder serverBinder = response.getResponseAsBinder();
            binder = response.getResponseAsBinder();
            DataResultSet resultSet = binder.getResultSet("SearchResults");
           for (DataObject dataObject : resultSet.getRows()) {
                 return dataObject.get("WebfilePath");
            } You can use the return value in an <img> tag. This is the fastest way to do and does not give any performance issues. I also use a similiar technique in one of my projects and it works great.

  • How to execute IDC services from command line

    Hey Guys,
    is there some way we can execute IDC Services from command prompt.
    your any pointers will be highly appriciated.
    regards,
    sapan
    Edited by: sapan on Mar 9, 2009 7:26 AM

    Hey sapan,
    You can use IdcCommand to execute services from the command line. The process is as follows:
    1. Create a text file with the services calls you want to make, the definitions are in hda format:
    @Properties LocalData
    IdcService=UPDATE_DOCINFO
    dID=1
    dDocName=000001
    dDocType=MyType
    dSecurityGroup=Public
    dRevLabel=1
    dDocAuthor=sysadmin
    dDocTitle=My Title
    @end
    <<EOD>>
    (Note: for multiple entries in the file <<EOD>> is very important)
    2. Execute IdcCommand from the <content server install>/bin directory:
    IdcCommand -f image_update.hda -u sysadmin -l c:\idccommand.log
    Options:
    -f = file with service definitions
    -u = user to run as
    -l (lowercase L) = location for log of execution
    More detailed documentation can be found in the Idc Command Reference (idc_command_reference_10en.pdf).
    Hope that helps,
    Andy Weaver - Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

Maybe you are looking for