- 07-03-2009 09:21 AM #1
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!
- 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.
- 07-03-2009 09:45 AM #2
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
- 07-03-2009 09:51 AM #3
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 "%testBild4Nagios%"';
- 07-03-2009 09:51 AM #4
Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM oh.. great...
- 07-03-2009 01:09 PM #5
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!
- 07-03-2009 02:41 PM #6
Re: Using AdvancedSearch webservice to send a query to Stellent/Oracle UCM 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
-
Query regarding Web form in Stellent Content Management
By sangramp in forum Oracle Fusion MiddlewareReplies: 2Last Post: 03-26-2010, 08:48 PM -
Send Mail from UCM form
By sandeepg in forum Oracle Fusion MiddlewareReplies: 3Last Post: 10-21-2009, 10:53 AM -
OracleInteligentAgent Executable Dont send error report
By ashay in forum GeneralReplies: 1Last Post: 04-09-2009, 03:01 PM -
send two e-mails from Oracle database
By vamsioracle in forum SQL PL/SQLReplies: 12Last Post: 03-27-2009, 05:25 AM -
Oracle UCM (stellent) help
By markH in forum Oracle Fusion MiddlewareReplies: 3Last Post: 11-17-2008, 07:19 AM


LinkBack URL
About LinkBacks
Reply With Quote


