• How to get folder path by uuid?

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
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.
 #4602  by janetao2000
 
Hi,
I notice that OpenKm has removed getPath by uuid in class OKMRepository. Right now, only OKMDocument has method getPath by uuid, yet its uuid must be a document's, not a folder's.
Anyone know the way to get folder path by a folder's uuid?

Regards,

Jane
 #4610  by jllort
 
You get some method in /OKMRepository?wsdl

I don't remember exactly but I think there's something called hasNode
 #27943  by matt81
 
That last method is obselete, in fact most methods and parameters described on the wiki page are outdated and need updating.
You have to follow the following list for the correct method and parameter name http://localhost:8080/OpenKM/services/r ... tory?_wadl

I have probems in getting a result using the method getNodePath where I pass the UUID so I can get the path as well as the method called getNodeUuid where I pass the path of the document so I can get the UUID.

Both of them return null. I have checked and the documents do exist.
Do you know what the problem could be. I use PHP as a client using REST web service.
This is how I pass the node id repository/getNodeUuid?nodePath=/okm:root/test
and repository/getNodePath/ba3d3b02-1c59-498b-80b1-00de46dfda7c
 #27954  by jllort
 
You're using rest service, this is only present in professional version an trial. If you're using professional version the public forum is not the place to do this kind of question, For it you got customer support website. Anyway the correct url should be
http://demo.openkm.com/OpenKM/services/ ... b0de28a896 ( althought you see in browser xml bad formed the return statement is correct )

Acually we're working in sdk for php to centralize rest implementation in a single api for any openkm version. I think we need 2 weeks more or less to get it.
 #28001  by matt81
 
Thanks for your reply.
Anyway the link that you have posted as the correct link is exactly the same as mine http://localhost:8080/OpenKM/services/r ... de46dfda7c
however it doesn't work, it returns null when it should return the path. I get a Code: 200, so the web service call is succesfful.

Also the other method doesn't work either http://localhost:8080/OpenKM/services/r ... :root/test
The formating is correct. The open source version can use SOAP and REST as well part of web services. Are you saying that these two methods are not available in community version?
 #28031  by pavila
 
REST API is not included in OpenKM Community, but we expect to release a new version with this API and other enhancements.
 #28033  by matt81
 
I have used REST API for Pro trial version! When will the new enhancements be released?
Why are the following two methods returning null: getNodeUuid and getNodePath
 #28055  by jllort
 
This month we'll try to release next community version.

About null returns, should take a look at catalina.log to see the error in more deep.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.