Page 1 of 1

Web service to upload a file to openKM

PostPosted:Tue Mar 26, 2013 11:21 am
by Mona
Hello ,

I've integrated the OpenKM web services into a third party platform(i.e., Cordys). In Cordys i can access the OpenKM web services now. But i am not finding any web service which allows me to upload documents in to my OpenKM.

I have installed OpenKM 6.2.2-Tomcat bundle.
I do not want to use the OpenKM UI to upload the documents.
Is there any Web Service to solve this issue??
Please reply me at the earliest.

Re: Web service to upload a file to openKM

PostPosted:Wed Mar 27, 2013 10:32 pm
by jllort
To create or update documents you should use OKMDocument I saw that in version 6.x we have not already written an example how to upload a new file, but really it's easy.

here you got examples in php for 5.x http://wiki.openkm.com/index.php/PHP_cl ... ult_create ( obviously the code in 6.x will not be exact, but will get to take some idea bout how doing it ). And here I found some one in java http://wiki.openkm.com/index.php/Java_c ... e_document but uses more complex method.

I suggest use creasimple ws method, because needs less parameters and should be more easy to you do initial tests.

If you make some minimal code ws test and you want to share with other users, tell us and we'll be pleased update this wiki section.

Re: Web service to upload a file to openKM

PostPosted:Wed Apr 24, 2013 6:16 am
by joako
Nevermind, I see the OpenKM 6 documentation is here: http://wiki.openkm.com/index.php/PHP_cl ... OpenKM_6.2

And I updated a previously posted script for OpenKM 6 here: http://forum.openkm.com/viewtopic.php?f ... 55&p=22678

Re: Web service to upload a file to openKM

PostPosted:Fri Jul 26, 2013 2:04 pm
by tonyclerk
Thank for the info :)