1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Need help in using web service of UCM in C#

Discussion in 'Oracle Webcenter Suite (formerly Oracle ECM)' started by rainmars, Jun 24, 2010.

  1. rainmars

    rainmars Guest

    I am trying to use the "Search" web service of UCM in C#.
    The code below is what I did,
    Code (Text):
    ucm_server.Search search = new ucm_server.Search();
    search.Credentials = new NetworkCredential("sysadmin", "idc");
    QuickSearchResult result = search.QuickSearch("xKeywords like `lvl`", null);
    "xKeywords" is a custom metadata field and it works well in content server. "lvl" is what I want to search.
    And this is the error message:
    Unable to retrieve search results. Parsing error at character 13 in query: "xKeywords like `lvl`"
    Here is what I tried in the "queryText" parameter, but I got the same error message
    • xKeywords like 'lvl'
    • xKeywords <substring> `lvl`
    • xKeywords <substring> 'lvl'
    • xKeywords like &quot;%lvl%&quot;
    I got the error whatever I define for extraProps.
    I don't know what the "queryText" parameter should be in C#.
    Could someone help me with this? Thanks a lot.

    I knew the reason. xKeywords is a custom metadata field and it works with a default metadata field like "dDocName".
    But I still do not know how to make it to work with a custom field:(