Execute GET_SEARCH_RESULTS service in doFilter method

Hi everybody,
I would like to copy "template file" into primaryFile by CHECKIN. The "template file" is saved in the UCM. I use custom component and now i run "doFilter" method.
First step in doFilter method is GET_SEARCH_RESULTS service.
I found this example:
DataBinder serviceBinder = idcClient.createBinder();
binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
binder.putLocal("QueryText","myquery");
ServiceResponse response = idcClient.sendRequest (userContext, binder);
DataBinder serverBinder = response.getResponseAsBinder ();
binder = response.getResponseAsBinder ();
DataResultSet resultSet = binder.getResultSet ("SearchResults");
// loop over the results
for (DataObject dataObject : resultSet.getRows ())
System.out.println ("Title is: " + dataObject.get ("dDocTitle"));
BUT:
- What is the object "idcClient"?
- How can i create the object? import........ what
Thank you
Martin

The error you get tells you that the server cannot find the service GET_SEARCH_RESULTS.
I checked the documentation (http://download.oracle.com/docs/cd/E17904_01/doc.1111/e11011/c05_core.htm#BABJBFFD) and this service is defined as a subservice - therefore, you might call it only within other service and (most likely) not directly from java.
I guess that you use a filter because you use some standard hooks (like check-in ones). Therefore, you might not be able to call subservice prior to calling the filter. I'd suggest you to write what you are trying to achieve - it seems to me a bit strange that as a result of a filter you want to nothing else but fill-in a search result set.

Similar Messages

  • 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 call GET_SEARCH_RESULTS service in filter

    Hi Experts,
    I wrote a custom filter and in filter i am calling GET_SEARCH_RESULTS service. But i am getting following error :
    intradoc.data.DataException: !csNoServiceDefined,GET_SEARCH_RESULTS
         at test.notification.ExpirationNotification.executeService(ExpirationNotification.java:195)
         at test.notification.ExpirationNotification.doCustomDailyEvent(ExpirationNotification.java:112)
         at test.notification.ExpirationNotification.doFilter(ExpirationNotification.java:51)
         at intradoc.shared.PluginFilters.filter(PluginFilters.java:92)
         at intradoc.server.ScheduledSystemEvents.checkScheduledEvents(ScheduledSystemEvents.java:161)
         at intradoc.server.IdcSystemLoader$13.handleManagerEvent(IdcSystemLoader.java:2411)
         at intradoc.server.SubjectManager$1.run(SubjectManager.java:92)
    Here is the code :
    public class ExpirationNotification implements FilterImplementor
         public int doFilter(Workspace ws, DataBinder eventData, ExecutionContext cxt)
              throws DataException, ServiceException
              try{
              String action = eventData.getLocal("action");
              if (action!=null && action.equals("CustomExpNotifyEvent"))
                   doCustomDailyEvent(ws, eventData, cxt);
                   return CONTINUE;
         }catch(Exception e){e.printStackTrace();}
              return CONTINUE;
         protected void doCustomDailyEvent(Workspace ws, DataBinder eventData,
              ExecutionContext cxt) throws DataException, ServiceException
              update("CustomExpNotifyEvent", "CustomExpNotifyEvent event started...", ws);
              try
                   DataBinder serviceBinder = new DataBinder();
                   serviceBinder.putLocal("QueryText", "dOutDate > `<$dateCurrent()$>` <AND> dOutDate < `<$dateCurrent(30)$>`");
                   serviceBinder.putLocal("IdcService", "GET_SEARCH_RESULTS");
                        executeService(serviceBinder,"sysadmin",false);
                        ResultSet results= serviceBinder.getResultSet("SearchResults");
              } catch(Exception e){e.printStackTrace();}
              update("CustomExpNotifyEvent", "CustomExpNotifyEvent finished successfully", ws);
         protected void update(String action, String msg, Workspace workspace) throws ServiceException, DataException
              long curTime = System.currentTimeMillis();
              ScheduledSystemEvents sse = IdcSystemLoader.getOrCreateScheduledSystemEvents(workspace);
              sse.updateEventState(action, msg, curTime);
         protected void trace(String str)
              SystemUtils.trace("scheduledevents", "- custom - " + str);
         public static Workspace getSystemWorkspace() {
              Workspace workspace = null;
              Provider wsProvider = Providers.getProvider("SystemDatabase");
              if (wsProvider != null)
                   workspace = (Workspace) wsProvider.getProvider();
              return workspace;
         * Obtain information about a user. Only the 'userName' parameter must be
         * non-null.
         public static UserData getFullUserData(String userName, ExecutionContext cxt,
                   Workspace ws) throws DataException, ServiceException {
              if (ws == null)
                   ws = getSystemWorkspace();
              UserData userData = UserStorage.retrieveUserDatabaseProfileDataFull(userName, ws, null, cxt, true, true);
              return userData;
         public void executeService(DataBinder binder, String userName,
                   boolean suppressServiceError) throws DataException,
                   ServiceException {
              // obtain a connection to the database
              Workspace workspace = getSystemWorkspace();
              // check for an IdcService value
              String cmd = binder.getLocal("IdcService");
                   if (cmd == null)
                   throw new DataException("!csIdcServiceMissing");
              // obtain the service definition
              ServiceData serviceData = ServiceManager.getFullService(cmd);
              System.out.println(cmd+".....serviceData-------------"+serviceData);
              if (serviceData == null)
                   throw new DataException(LocaleUtils.encodeMessage(
                             "!csNoServiceDefined", null, cmd));
              // create the service object for this service
              Service service = ServiceManager.createService(serviceData.m_classID,workspace, null, binder, serviceData);
              // obtain the full user data for this user
              //if(service.getCachedObject("propFile")==null){
              UserData fullUserData = getFullUserData(userName, service, workspace);
              service.setUserData(fullUserData);
              binder.m_environment.put("REMOTE_USER", userName);
              ServiceException error = null;
              try {
                   // init the service to not send HTML back
                   service.setSendFlags(true, true);
                   // create all the ServiceHandlers and implementors
                   service.initDelegatedObjects();
                   // do a security check
                   service.globalSecurityCheck();
                   // prepare for the service
                   service.preActions();
                   // execute the service
                   service.doActions();
                   // do any cleanup
                   service.postActions();
                   // store any new personalization data
                   service.updateSubjectInformation(true);
                   service.updateTopicInformation(binder);
              } catch (ServiceException e) {
                   error = e;
              } finally {
                   // Remove all the temp files.
                   service.cleanUp(true);
                   workspace.releaseConnection();
              // handle any error
              if (error != null) {
                   if (suppressServiceError) {
                        error.printStackTrace();
                        if (binder.getLocal("StatusCode") == null) {
                             binder.putLocal("StatusCode", String
                                       .valueOf(error.m_errorCode));
                             binder.putLocal("StatusMessage", error.getMessage());
                   } else {
                        throw new ServiceException(error.m_errorCode, error
                                  .getMessage());
    Edited by: user4884609 on Nov 5, 2012 5:05 PM

    The error you get tells you that the server cannot find the service GET_SEARCH_RESULTS.
    I checked the documentation (http://download.oracle.com/docs/cd/E17904_01/doc.1111/e11011/c05_core.htm#BABJBFFD) and this service is defined as a subservice - therefore, you might call it only within other service and (most likely) not directly from java.
    I guess that you use a filter because you use some standard hooks (like check-in ones). Therefore, you might not be able to call subservice prior to calling the filter. I'd suggest you to write what you are trying to achieve - it seems to me a bit strange that as a result of a filter you want to nothing else but fill-in a search result set.

  • Problem generating Web Service with business methods in multiple EJB's

    Hi,
    I'm I a "web service novice" but I'm working with an
    application which was developed in an earlier version
    of Studio which has
    ~30 business method coming from ~12 EJB's. When I attempt
    to recreate the Web Service in Java Studio Enterprise 7 (had same problem versions 5 and 6) I have trouble. When I execute the "Generate Web Service Files" command I get complilation errors in the <webservice_name>.java file. It is obvious that the
    protected Map theJNDIMap = makeJNDIMap();
    protected Map makeJNDIMap() {
         Map m = new HashMap();
         // This map might get changed at deployment time
         m.put(......
    is all screwed up. Entries are missing and the closing bracket isn't even there.
    Is there some user error on my part?
    Is this a know bug (I couldn't any info. and I get the same behavior on the current and older versions of Studio)?
    Is there a workaround? I can fix this particular java file and compile it sucessfully. However, I'm still missing many of the other web service files that should be generated for me.
    All the tutorials on web services that I've done to looked over all get there business method from 1 EJB :(
    Please advise,
    Freda Phelps

    I had a problem too. Successfully created an EJB and its test application. Tested the same using Web client and works fine. Now created a web service from EJB methods. It created the skeletons. When tried creating Web Svc test client or web svc other files..it gives me an exception saying xmlservices.jar doesnt exist in the C:\Docs and Settings\<$username>\.jstudio\Ent04Q4modules. I have searched for this file and copied (overwritten) it into this directory. But still i cant proceed further.

  • Can not execute web service out of vc modelled in nwds

    Hi,
    I am working on CE 7.11 and modelled in NWDS a VC model. I am using several web services. The web services was found by Service Registry and could be added to the vc model without any problems.
    But when I deploy my vc model and try to execute a service I got two errors:
    Error occurred while identifying the destination : Destination CE2 not found
    Error occurred during Destination Lookup
    I know that I have to set something, somewhere but I do not know where. I could cry!
    May somebody help me please?
    Regards

    Hi,
    thats really crazy. You lead me to a new thinking and after hours I got my example running!
    In NWDS:
    When I search and add the web service over the Service Registry and right click at the method > Configure > Target Component I see that NWDS takes as System alias "CE2". Thats wrong because, actually it should take the service name!
    To handle this problem at Window > Preferences > Web Service Configuration I define new service, refresh my service search in NWDS and add it to the model. Now at "Configure > Target Component" I have the correct system alias.
    As final step I only have to define in NWA a HTTP Destination with the exactly same name as defined in System alias.
    But do you know why NWDS takes wrong "System alias" over Service Registry menue?
    Regards

  • Execute UCM Service in custom component

    Hi ,
    I was looking for information how to execute the UCM service in custom component and found a couple of blogs regarding the same :
    http://jonathanhult.com/blog/2012/06/execute-a-service-from-a-java-filter/
    http://jonathanhult.com/blog/2012/10/who-created-that-site-studio-section/
    http://www.redstonecontentsolutions.com/5/post/2012/05/executing-a-service-from-aservicehandler.html#sthash.X31M6ZCS.tvlE83Km.dpbs
    I am new to webcenter content and couldn't understand above blog stuff properly. Queries :
    1. We may need to call the UCM service in filter, Service or ServiceHandler. Is there any difference in code required to execute a service ?
    2. What is the correct code to execute the UCM service ?

    Ad 1) the reason why the same service might be executed slightly differently from e.g. a filter or another service/service handler is that classes Service, ServiceHandler, and the interface FilterImplementor provide slightly different attributes. Note that you may also execute a service from iDocScript (via the executeService command - see http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c08_config_ref.htm#i1078100)
    Ad 2) There is no 'correct' or 'incorrect' way/ Simply, from a filter you will do it this way, and from a service that way. I think you should ask, what is the correct way to implement my custom service - should it be a filter? Or rather a service handler? Will I need Java, or is iDocScript enough? Unfortunately, you have not shared anything about what your component should do.

  • DoFilter() method is being called only at the second request

    Hi,
    I have implemented a simple Filter class
    Here is the code
    public class BasicFilter implements Filter
    FilterConfig config;
    public void init(FilterConfig config)
    System.out.println("Filter Initialised");
    this.config = config;
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws ServletException,
    IOException
    System.out.println("In The doFilter() method");
    ServletContext sc = config.getServletContext();
    sc.setAttribute("Hello","Hell");
    chain.doFilter(request,response);
    public void destroy()
    System.out.println("In the destroy method");
    and a simple servlet
    public class FilteredServlet extends HttpServlet
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Filter Demo</TITLE></HEAD>");
    out.println("<BODY>");
    out.println(getServletContext().getAttribute("Hello"));
    out.println("</BODY>");
    out.println("</HTML>");
    Now when i start the server (Tomcat 4.0) i find that the filter's init() method is being called which is fine. But when i request the servlet (FilteredServlet) the doFilter() method is not called and only when i "refresh" it or call it a second time that the doFilter() method is actually called. What could be the reason for this.
    Help will be greatly appreciated.
    Thank You,
    Phani Kanuri

    Hi jleech,
    Thanks for the reply. But deleting all the temporary internet files as also the history files does not seem to have an effect. the doFilter is being called only at the second request. or did i miss anything??
    Please help. unable to complete the assignment because of this.
    Thank You,
    Phani Kanuri

  • Use web service with overloaded method

    Hi all,
    Does anyone knows how can I use (e.g in VC or GP) a web service with overloaded methods?
    When I try to use one, I get the following error message:
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. WSDL Operation with name [search] is overloaded (defined twice). Operation overloading is not supported by proxy generator.
    Can I set something in order to be able to use such type of services. Or some other solution?
    For some reasons I do not want to change the service operation names.
    Thanks in advance!
    Best regards,
    v s

    Hi all,
    Does anyone knows how can I use (e.g in VC or GP) a web service with overloaded methods?
    When I try to use one, I get the following error message:
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. WSDL Operation with name [search] is overloaded (defined twice). Operation overloading is not supported by proxy generator.
    Can I set something in order to be able to use such type of services. Or some other solution?
    For some reasons I do not want to change the service operation names.
    Thanks in advance!
    Best regards,
    v s

  • Where to execute the services? i.e., SICF or SE80

    Hi friends,
    Can anybody tell me the difference between services created in SICF and the services in SE80.From where i have to execute the services?
    I have created a screen-based service in se80 and published the service.
    In SICF i have created the sub-element for the same service created in se80.I have done all the settings.and activated the service and tested that service here itself.
    But my doubt is once the service is activated in SICF , from where this service should be excuted? ie., either from SICF or from SE80?
    Am confusing at this step.please help me out.
    Thanks in advance.
    Regards
    sireesha

    Hi,
          Kindly go through this webBlog,this wil answer ur Question.
    Service Enable Your SAP Application Component
    Plz reward Points,if helpful
    Thanks and Regards
    Santos Saraf

  • 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 >

  • Possible to execute complex query in ExecuteSQL method in DI Server??

    Hi All,
    Is it Possible to execute complex query in ExecuteSQL Method in DI Server?
    Regards,
    G.Suresh

    Hello Guru,
    It is possible. Mostly if it can be done in DI, it will also can be done in DI Server except metadata operaiton, transation management etc.
    I try the following complex query (join, nexted):
    The SOAP Request
    <?xml version="1.0" encoding="UTF-16"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header>
      <SessionID>4FFCFAA3-5493-456A-BC89-410B35AF096C</SessionID>
    </env:Header>
    <env:Body>
      <dis:ExecuteSQL xmlns:dis="http://www.sap.com/SBO/DIS">
       <DoQuery>SELECT OCRD.CardCode, OCRD.CardName, OCPR.Name FROM OCRD JOIN OCPR ON OCRD.CardCode = OCPR.CardCode WHERE OCRD.CardCode IN
    (SELECT DISTINCT ORDN.CardCode FROM ORDN)</DoQuery>
      </dis:ExecuteSQL>
    </env:Body>
    </env:Envelope>
    The SOAP Response:
    <?xml version="1.0"?><env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Body><ExecuteSQLResponse xmlns="http://www.sap.com/SBO/DIS">
    <BOM><BO><AdmInfo><Object>oRecordset</Object></AdmInfo><OCRD><row><CardCode>C002</CardCode><CardName>SAP</CardName>
    <Name>2</Name></row><row><CardCode>C002</CardCode><CardName>SAP</CardName><Name>l</Name></row><row><CardCode>C002</CardCode>
    <CardName>SAP</CardName><Name>Z</Name></row></OCRD></BO></BOM></ExecuteSQLResponse></env:Body></env:Envelope>
    I think you can easily parse the result...
    Kind Regards
    -Yatseas

  • Indesign CC stuck at "Executing startup services".

    As per title,. Indesign CC won't start at all, it gets stuck at "Executing startup services".
    I have reinstalled without any change.
    Running - Win 7 64bit

    See Troubleshooting 101: Replace, or "trash" your InDesign preferences for the paths to the two folders ID uses to store the prefs and make sure that both your user and System have Full Control permissions. If that doesn't solve it, reinstall.

  • How to execute a service from a filter in custom component

    I want to execute a service from my filter.
    Then get a resultset from service.
    How do I do it?

    You have to look at Bex book - you will find exactly what you need. You can also could search the forum, i think this was discussed in some threads.

  • Audigy2 Value_Can't execute driver service or load AsmiHwIo.

    When I installed?my Audigy 2 Value sound card I got these two messages at desktop:
    Can't Execute Driver Service
    Cant Load AsmiHwIo.dll
    I then updated the driver with SBAX_PCDRV_LB_2_8_000.exe
    It seems to be working from what I can tell.
    ? Jim

    Thanks for the reply.
    I found out that the Asus Probe was the main culprit in reguards to my specific problem but I
    do intend to remove the old drivers and reinstall the new ones to resolve some other issues.
    ? Jimato

  • Getting Error when executing Web Service Model method in WD Application

    hi ,
       I have written WD Application which has Web Service Model(Deprecated). I did the context mapping between WS Model-->Comp Controller --> iView Controller. When i try to execute a method in Web Service method in Component Controller after binding. its shows the following error at the line of coding execute().
    "java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V
    Any help appreciated. Thanks.
    Thanks,
    Saravanan

    Hi,
    First, can you check whether you able to access your web service url in browser?
    or
    you can test your webservice from the NWDI Web service perspective, here you can test your web service is correctly functioning or not before using in your Web Dynpro application.
    This document clearly explains How to test the web service url and what is the correct procedure to consume the web service in SAP portal.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07992b3-b5af-2a10-9886-affcbeccc4c9]
    [http://help.sap.com/saphelp_nw70/helpdata/en/f4/1a1041a0f6f16fe10000000a1550b0/content.htm]
    Regards
    Raghu

Maybe you are looking for

  • Error While Running Depreciation in Oracle Fixed Asset

    We have uploaded assets in Oracle Fixed Asset from old system successfully. Now we were to Run depreciation for the first time and the first process Generate Accounts runs with error, APP-OFA-48400: ORA-06550: line 1, column 7: PLS-00306: wrong numbe

  • Change in partner at header level not getting copied to item level

    Hello, I would really appreciate any help from the forum on the below query. How is it possible that a change in the Employee Responsible(Standard Partner Function) at the header level is not triggering a change in the item level? Thanks, Sahil

  • For each loop start on odd page number

    Hy, I've an rtf template with a for each loop. I want to skip a page between each loop and to start each new loop on an odd page number (duplex printing). It's easy to skip a page but i don't know how to start each loop on an odd page. i've tried thi

  • Ultra 40 Event12, Kernel-WHEA error log in WinVista x64

    While I still enjoy working with my Ultra 40 Workstation, lately, I've noticed Kernel-WHEA (EventID 12) error log which seems to appear everytime Windows Vista x64 boots up. My Ultra 40 has AMD Opteron 280 box with 4GB RAM and is running Windows Vist

  • Webservice deployment

    I have generated Web Services Proxy using the JDeveloper (10.1.3.1.0) Wizard, and they work fine in the JDeveloper, but when deploying to E-Business Suite Class @ oracle.apps.xdo.xbrl.validator.proxy.types.ws.oxes.et.oardc.oracle.types.runti me.GetSe