Page 1 of 1
How to get folder path by uuid?
PostPosted:Fri Apr 09, 2010 5:07 pm
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
Re: How to get folder path by uuid?
PostPosted:Fri Apr 09, 2010 7:50 pm
by jllort
You get some method in /OKMRepository?wsdl
I don't remember exactly but I think there's something called hasNode
Re: How to get folder path by uuid?
PostPosted:Mon Apr 12, 2010 3:09 pm
by pavila
See last method at
http://wiki.openkm.com/index.php/OKMRepository. It works for documents and folders.
Re: How to get folder path by uuid?
PostPosted:Fri Feb 28, 2014 5:30 am
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
Re: How to get folder path by uuid?
PostPosted:Sat Mar 01, 2014 8:04 am
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.
Re: How to get folder path by uuid?
PostPosted:Sun Mar 02, 2014 10:58 pm
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?
Re: How to get folder path by uuid?
PostPosted:Tue Mar 04, 2014 5:11 am
by matt81
Can I get an answer please?
Re: How to get folder path by uuid?
PostPosted:Tue Mar 04, 2014 7:10 pm
by pavila
REST API is not included in OpenKM Community, but we expect to release a new version with this API and other enhancements.
Re: How to get folder path by uuid?
PostPosted:Tue Mar 04, 2014 10:55 pm
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
Re: How to get folder path by uuid?
PostPosted:Sat Mar 08, 2014 9:48 am
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.