+ Reply to Thread + Post New Thread
Results 1 to 6 of 6
  1. #1
    PowerPaul86's Avatar
    PowerPaul86 is offline Junior Member
    Join Date
    16 Jun 2009
    Location
    Germany, Karlsruhe
    Posts
    4
    Say Thanks
    0
    Thanked 1 Time in 1 Post
    Documents
    0
    Uploads
    0

    Default Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    Hi there,

    i am trying to use the webservice of an Oracle UCM server to search for a specific document.

    All i am trying to do is a search in the following pseudosqlcode:

    Code :
    WHERE 'dDocTitle' = "testBild4Nagios.png"

    I can successfully call the AdvancedSearch webservice and perform a search with the following code:

    Code :
    $result = $soap->AdvancedSearch(array(  
                                            'queryText'=>""
    ));

    That way i get all documents as a search result.

    Now how do I add the before mentioned WHERE clause?

    I know that all parameters must be XML encoded, so I tried out:

    Code :
    $queryText = 'dDocType <Substring> "testBild4Nagios"';

    But I still get the error message:

    Code :
    [statusMessage] => The query could not be executed. Invalid character in the query position 9: "dDocType <Substring> "testBild4Nagios""

    Position 9 is the first blank in the queryText.

    I also tried out urlencode to remove the blank character but still no success.

    Could you help me with this?
    Do I need to configure the UCM server to accept blank characters?


    Thanks in advance!

  2.    Club-Oracle Complementary E-Books and Magazines
    Get your free Complementary Copy of Oracle Magazine

    You can also browse the Free Magazines and E-Books section to see the complete list of free magazines, e-books and Whitepapers.

  3. #2
    PowerPaul86's Avatar
    PowerPaul86 is offline Junior Member
    Join Date
    16 Jun 2009
    Location
    Germany, Karlsruhe
    Posts
    4
    Say Thanks
    0
    Thanked 1 Time in 1 Post
    Documents
    0
    Uploads
    0

    Default Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    As usual I found the solution right after I posted this ...

    I didn't tried

    Code :
    $queryText = "dDocTitle <substring> `testBild4Nagios.png`";

    without urlencode ...

    Now it works as it should.

    Maybe someone else can use my php script:
    http :// pastebin. org / 31

  4. #3
    markH's Avatar
    markH is offline Forum Advisor
    Join Date
    12 Nov 2008
    Location
    Kansas
    Posts
    85
    Say Thanks
    0
    Thanked 20 Times in 9 Posts
    Documents
    0
    Uploads
    1

    Default Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    i suggest instead of substring to use like operator and % character. Something like this

    Code :
    $queryText = 'dDocType like &quot;%testBild4Nagios%&quot;';

  5. #4
    markH's Avatar
    markH is offline Forum Advisor
    Join Date
    12 Nov 2008
    Location
    Kansas
    Posts
    85
    Say Thanks
    0
    Thanked 20 Times in 9 Posts
    Documents
    0
    Uploads
    1

    Default Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    oh.. great...

  6. #5
    PowerPaul86's Avatar
    PowerPaul86 is offline Junior Member
    Join Date
    16 Jun 2009
    Location
    Germany, Karlsruhe
    Posts
    4
    Say Thanks
    0
    Thanked 1 Time in 1 Post
    Documents
    0
    Uploads
    0

    Default Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    Another question is it somehow possible to delete a document with a call of a webservice?

    I am frequently checking in a document to simulate a user interaction.
    Now I want to remove this / or all testdocuments.
    I got all the information (dDocName, dID etc.) about the testdocument thorugh the AdvanceSearch webservice.

    I could checkin the test files in a special group, so I could delete that group folder in the weblayout, but I also would need to delete the corresponding entries in the oracle database.

    Is there a simpler way to do this?


    Thanks in advance!

  7. #6
    Sadik's Avatar
    Sadik is offline Administrator
    Join Date
    03 Aug 2008
    Location
    Kolkata, India
    Posts
    1,184
    Say Thanks
    7
    Thanked 83 Times in 54 Posts
    Documents
    4
    Uploads
    2

    Default Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM

    Quote Originally Posted by PowerPaul86 View Post
    Another question is it somehow possible to delete a document with a call of a webservice?
    Sure you can. All UCM functionlities are service calls so why can't you delete!

    You need to use the DELETE_REV service call to delete a particular revision. You may like to read this chapter from Bex's book to get more details:

    http://books.google.com/books?id=TiU...llent+services

    and btw that's a cool Avatar!
    Learn Oracle with Oracle forum. Check out The Technology Blog

Similar Threads

  1. Query regarding Web form in Stellent Content Management
    By sangramp in forum Oracle Fusion Middleware
    Replies: 2
    Last Post: 03-26-2010, 08:48 PM
  2. Send Mail from UCM form
    By sandeepg in forum Oracle Fusion Middleware
    Replies: 3
    Last Post: 10-21-2009, 10:53 AM
  3. Replies: 1
    Last Post: 04-09-2009, 03:01 PM
  4. send two e-mails from Oracle database
    By vamsioracle in forum SQL PL/SQL
    Replies: 12
    Last Post: 03-27-2009, 05:25 AM
  5. Oracle UCM (stellent) help
    By markH in forum Oracle Fusion Middleware
    Replies: 3
    Last Post: 11-17-2008, 07:19 AM

Tags for this Thread