Can we use Xpath in WS 6.2

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
michaeled
Expert Boarder
Expert Boarder
Posts: 101
Joined: Mon Apr 23, 2012 9:37 am

Can we use Xpath in WS 6.2

Post by michaeled » Mon Oct 07, 2013 2:20 pm

Hi all !

For a php client with OpenKM 5.10, i was performing a search with that code :

Code: Select all

$user = 'm.edlich';
$statement = "/jcr:root/okm:root//element(*, okm:document)[(@okm:authUsersRead = '".$user."')] order by okm:content/@jcr:lastModified descending";
$queryResultArrayResult = $OKMSearch->findByStatement($token, $statement, "xpath");
$queryResultArray = $queryResultArrayResult->item;
This code doesn't work anymore with OpenKM 6.2,

So is it possible to continue to use xpath in soap request ?

Michael.

jllort
Moderator
Moderator
Posts: 10830
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Can we use Xpath in WS 6.2

Post by jllort » Wed Oct 09, 2013 9:40 am

I think no. From vertion 5.x to 6.x we make a major upgrade which was remove jackrabbit repository and work with our own ( new database, etc... ). I think xpath now is deprecated, I'm no totally sure I will ask to one of my colleagues.

michaeled
Expert Boarder
Expert Boarder
Posts: 101
Joined: Mon Apr 23, 2012 9:37 am

Re: Can we use Xpath in WS 6.2

Post by michaeled » Wed Apr 23, 2014 9:29 am

Hi Jllort,

Do you have news about the use of Xpath Query (wiki :http://wiki.openkm.com/index.php/XPath_queries) in OpenKM 6.2 ?


I was havin a script in Okm5 who show the 5 last documents added,
with something like this : /jcr:root/okm:root//element(*, okm:document)[(@okm:authUsersRead = 'toto' or @okm:authRolesRead = 'roleTOTO')] order by okm:content/@jcr:lastModified descending

How can I do that with new implementation ?

Thanks,

Michael.

pavila
Moderator
Moderator
Posts: 3072
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: Can we use Xpath in WS 6.2

Post by pavila » Wed Apr 23, 2014 3:44 pm

In OpenKM 6.2 you can make Hibernate or SQL queries, but not XPath.

Post Reply