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.

Similar Messages

  • How to call web service using J2SE 1.3?

    Dear All,
    i have developed a web service by jdev 10.1.3 (JAX-RPC with web service security
    enabled).
    i generate the ws proxy (jdev 10.1.3) and run it with wsclient_extended.jar (required JDK 1.4.1 or above??).
    but one of my client say he has to use J2SE 1.3.x (as OS=AIX 4.3 that without J2SE
    1.4.x ), could anyone tell me how can generate ws proxy (with supporting
    library) for jdk 1.3.x?
    if oracle don't have such library / tools, any third party tools / library available?
    thank you.
    lsp

    I'm found answer:
    Java and SAP Portal blog: How to call web service from java code example

  • How to call business service from xquery transformation in OSB ??

    Hi All,
    How to call business service from xquery transformation in OSB ??
    I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
    It's urgent.
    Regards,
    Jyoti Nayak

    Transformation is to mapping the source and target of 2 different schemas.
    In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
    Thanks,
    Vijay

  • How to call web services in WEB DYNPRO ABAP

    Hi ABAPER'S,
    Please let me know how to call web services in web dynpro.
    Thanks,
    Sandy.

    Hi Sandy,
    Please check this blog..
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    also cehck this...
    call the webservices in webdynpro ABAP.
    calling webservice in webdynpro component
    Re: Web Services in WDA.
    Cheers,
    Kris.
    Edited by: kissnas on May 24, 2011 11:37 AM

  • Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service. 

    Photoshop CS6 could not update successfully.  Error codes Adobe Photoshop 13.0.1.3 Installation failed. Error Code: U44M1P7  Extension Manager 6.0.8 Update Installation failed. Error Code: U44M1P7  Please help me figure out how to call customer service.  I would prefer to talk to someone directly.

    Are you using any disk cleaner or optimization tools like CleanMymac or Mackeeper?
    Regards,
    Ashutosh

  • How to call WEB Service From SAP

    Hi Friends,
    How to call WEB Service From SAP.
    Thanks in advance,
    Murali Krishna K

    Hi,
    if you mean calling a web service in Web Dynpro ABAP, see the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/d7/951b42f828df2ce10000000a1550b0/frameset.htm">documentation</a>, if you mean calling a web service in general, this is not the correct forum. This here is the Web Dynpro ABAP forum, for general questions on ABAP, use the ABAP forum.
    Regards, Heidi

  • How to call web-service using only java code

    Hello, how to call web-service using only java code. I can call it from BPM process or Web Dynpro Java Application, but if I need to call it from ejb component?

    I'm found answer:
    Java and SAP Portal blog: How to call web service from java code example

  • How to call web services from HTML

    Hi All,
    Does anybody have an idea on how to call web services from HTML using axis and i am using jboss-4.0.5 as the application server.

    What did your Google search return?

  • How to call web services from PL/SQL?

    Hi,
    Can one help in how to call web services from PL/SQL? Steps, pros and cons, etc....
    Thanks in advance

    Here's some example skeleton code to get you started...
      PROCEDURE p_soap_request(p_username IN VARCHAR2, p_password IN VARCHAR2, p_proxy IN VARCHAR2) IS
        soap_request  VARCHAR2(30000);
        soap_respond  CLOB;
        http_req      utl_http.req;
        http_resp     utl_http.resp;
        resp          XMLType;
        soap_err      exception;
        v_code        VARCHAR2(200);
        v_msg         VARCHAR2(1800);
        v_len number;
        v_txt Varchar2(32767);
      BEGIN
        UTL_HTTP.SET_PROXY(p_proxy);
        -- Define the SOAP request according the the definition of the web service being called
        soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>'||
                       '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">'||
                       '  <SOAP-ENV:Body>'||
                       '    <m:DownloadRequest xmlns:m="http://www.website.net/messages/GetDetails">'||
                       '      <m:UserName>'||p_username||'</m:UserName>'||
                       '      <m:Password>'||p_password||'</m:Password>'||
                       '    </m:DownloadRequest>'||
                       '  </SOAP-ENV:Body>'||
                       '</SOAP-ENV:Envelope>';
        http_req:= utl_http.begin_request
                  ( 'http://www.website.net/webservices/GetDetailsService.asmx'
                  , 'POST'
                  , 'HTTP/1.1'
        utl_http.set_header(http_req, 'Content-Type', 'text/xml');
        utl_http.set_header(http_req, 'Content-Length', length(soap_request));
        utl_http.set_header(http_req, 'Download', ''); -- header requirements of particular web service
        utl_http.write_text(http_req, soap_request);
        http_resp:= utl_http.get_response(http_req);
        utl_http.get_header_by_name(http_resp, 'Content-Length', v_len, 1); -- Obtain the length of the response
        FOR i in 1..CEIL(v_len/32767) -- obtain response in 32K blocks just in case it is greater than 32K
        LOOP
            utl_http.read_text(http_resp, v_txt, case when i < CEIL(v_len/32767) then 32767 else mod(v_len,32767) end);
            soap_respond := soap_respond || v_txt; -- build up CLOB
        END LOOP;
        utl_http.end_response(http_resp);
        resp:= XMLType.createXML(soap_respond); -- Convert CLOB to XMLTYPE
      END;Using secure web services (https)...
    Web serivces call in Plsql
    As for 'pros and cons'... there's nothing to compare against... either you want to call a web service or you don't.

  • How to call WEB Service From SAP 4.6 c

    Hi Friend,
    How to call WEB Service From SAP 4.6 c Report
    Thanks in advance.

    It is not possible to directly call a web service from SAP 4.6c.
    Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
    So as described above, the solution is indeed to make use of PI(XI) for this.
    Rgds,
    Karim

  • How is called the Services "OpsMgr Health Service" in the SCOM 2012 and Client machine?

    Hi,
    Can anybody tell me how is called the Services of OpsMgr Health Service in the SCOM 2012?
    I have installed the agent of scom2012 on my client computer. But I dont find any agent called "OpsMgr Health Service" on the Client machine?
    Regards

    Hi
    If you look in the services.msc window then it is listed as the System Center Management Service. This is the display name.
    The actual service name is HealthService
    Cheers
    Graham
    Regards Graham New System Center 2012 Blog! -
    http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at
    http://systemcentersolutions.wordpress.com/
    The Ayman answer is god, It is called "Microsoft Monitoring Agent"

  • How to call GET_SEARCH_RESULTS from Filter Class

    Hi All,
    I want to call GET_SEARCH_RESULTS from Filter Class. How can we do? Any sample code.

    Hi Mohan,
    I am using "preComputeDocName"
    public int doFilter(Workspace ws, DataBinder binder, ExecutionContext cxt)
    throws DataException, ServiceException
      String dType=binder.getLocal(UCMConstants.dDocType);
      if(dType.equals("CIDTest"))
       if(binder.getLocal("IdcService").equals("CHECKIN_NEW"))
        String filename=binder.getLocal(UCMConstants.primaryFile);
        originalFileName=filename.substring(filename.lastIndexOf("\\")+1);
        SystemUtils.trace(trace_checkin, "org::"+originalFileName);
        DataBinder newDB = ucmUtils.getNewBinder(binder);
        newDB.putLocal("IdcService", "GET_SEARCH_RESULTS");
        newDB.putLocal("QueryText","dDocType <starts> `"+dType+"` <AND> xcidfilename <starts> `"+originalFileName+"`");
        ucmUtils.executeService(ws, newDB, true);
        DataResultSet docInfoDrs = null;
        docInfoDrs = (DataResultSet) newDB.getResultSet("SearchResults");
        if(docInfoDrs.getNumRows()!=0){
         throw new ServiceException("file is not unique");
        binder.putLocal("xcidfilename", originalFileName);
        return CONTINUE;
    return CONTINUE;

  • How to call Web Services (with javascript) in a view load event ?

    Hello to the expert community,
    I'm looking for a piece of javascript code allowing to call Web Services in a view load event ?
    Any ideas will be really appreciated.
    Regards.
    Have a nice week.

    Thank you for your answer, dongmei.
    It seems that the MethodResultTableDataProvider does not return the response of the web service as a value field if the WSDL contains only one result element.
    E.g. from WSDL of the USWeather Web Service which returns theGetWeatherReportResult string:
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
          <s:element name="GetWeatherReport">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="GetWeatherReportResponse">
            <s:complexType>
              <s:sequence>
                <s:element minOccurs="0" maxOccurs="1" name="GetWeatherReportResult" type="s:string" />
              </s:sequence>
            </s:complexType>
          </s:element>
          <s:element name="string" nillable="true" type="s:string" />
        </s:schema>If I drag the web service method on the page and I should be able to select the response value in the Bind to Data dialog box. But there is no value field. Value fields only occur if the web service returns more than one value.
    The question is how can I get the response GetWeatherReportResult from the service.

  • How to call rest service with POST Http method in SMP2.3 HWC?

    Hi Experts,
       I am doing a sample for Rest Service in smp.
    http://192.168.1.119:8086/Test/services/Products
    I am calling the above service in the smp it is pulling the data from the service with GET Http Method.
    Now i want to call this service for login functionality.
    http://192.168.1.119:8086/Test/services/auth?uname=:uname&pass=:pass
    here :uname &:pass values are argument values for the uname & pass.
    the output of the service is
    http://192.168.1.119:8086/Test/services/auth?uname=sravanya.k&pass=sravanya
    <?xml version="1.0" encoding="UTF-8"?>
    <details>
    <responsecode>200</responsecode>
    <profile>
    <firstname>sravanya</firstname>
    <lastname>k</lastname>
    <email>[email protected]</email>
    <chart_type>North</chart_type>
    <location>MACHILIPATNAM</location>
    <language>English</language>
    </profile>
    </details>
    How can i do this?
    Thanks & Regards,
    Sravanya K

    Create a uriTemplate like this
    /auth?uname={uname}&pass={pass}
    use GET method only.
    generate the personalization keys.

  • How to call Web Service from Servlet !

    Dear All,
    I am in dire need to understand how to call a web service from Servlet.
    I need to develop a web service which will read LDAP Directory server to retreive information.
    How I should call that web service from a Servlet? What Servlet actions do I need to write etc.
    I need guidance about design of the above task please.
    I would higly appreciate any help and guidance in this regard.
    Thanks.
    Regards,
    Waqar

    You can use java.net.URLConnection for that.

Maybe you are looking for

  • LOGO image not appearing in infoview

    Hi, I am using web inteligence for my BO report creation. I have saved my logo in the image folder (C:\Program Files\Business Objects\BusinessObjects Enterprise 12\Images). I have used  the logo in my WEBI report by using BOIMG:// and it is appearing

  • Email delivery failed. unable to send and receive email for da device 9780 bold

    Hellow, I m using BlackBerry® 9780 smartphone (3G, Wi-Fi) 6.0 Bundle 863 (v6.0.0.285, Platform 6.5.0.54) 3G Bands 1,2,5,6 Cryptographic Kernel v3.8.6.5 Branding Version: 1.0.99.538J Micro Edition Configuration: CLDC-1.1 Micro Edition Profile: MIDP-2.

  • ACE 4710 breaks single sign-on on IE

    I haven't run into this before and I can't find anything in the documentation regarding it.  (Our 2 4710 were setup prior in a routed configuration although I personally see no reason for it.)  Regardless, we have 2 servers that host 4 websites on th

  • Drive appears in device manager but not in My Computer

    I just wanted to post a solution that took me about 2 hrs to solve. Issue was, my firewire WD TB drive would be seen, by XP (SP3) on boot camp, in xp's device manager but not in My Computer. My goal was to format this as an NTFS drive for my boot cam

  • Sync problem since upgrading to 10.4.08

    Since upgrading to 10.4.08 whenever I sync my ipod I get a message saying " The Ipod cannot be updated. The required file is in use". This is a problem I am having with my 2 mac's and 2 ipods so it is isolated to a single piece of hardware. Any ideas