Page 1 of 1

How can I add some new methods in Webservices?

PostPosted:Thu Jul 02, 2015 4:16 am
by MacFerden
Is it possible to extend Webservice functionality? I would like to implement user administration functions, like deleteUser, createUser etc.
I could add methods in com.openkm.ws.endpoint, but I don't fully understand how to make them visible.
I'm quite new to Java Web thing, so could you please post some code examples?

Re: How can I add some new methods in Webservices?

PostPosted:Sun Jul 05, 2015 9:50 am
by jllort
Probably the easiest to you will be download our portable dev environment
https://sourceforge.net/projects/openkmportabledev/

Then must decide if you want to extend SOAP ws or Rest ones
For soap modify the class AthService
https://sourceforge.net/p/openkm/code/H ... rvice.java
http://doxygen.openkm.com/openkm_6.3.0/ ... rvice.html

and for rest the other AtuhService class
https://sourceforge.net/p/openkm/code/H ... rvice.java
http://doxygen.openkm.com/openkm_6.3.0/ ... rvice.html

Re: How can I add some new methods in Webservices?

PostPosted:Mon Jul 06, 2015 11:12 am
by MacFerden
Thank you for the answer.
I have another question. How can I get categories list, or full tree using Webservices?
I'm working on custom client, but API isn't straightforward. Could you post some example code?

Re: How can I add some new methods in Webservices?

PostPosted:Wed Jul 08, 2015 9:06 am
by jllort
Are you using SDK for java http://wiki.openkm.com/index.php/SDK ? or what are you using ?

On new documentation also we will build full example of each method. At end august should we get something.