Page 1 of 1
Adding new method to web services
PostPosted:Thu Jan 22, 2015 8:13 am
by mohasinmujawar56
I want to integrate my website with OpenKM using webservices and want to create a new method in webservices provided with source code for adding, updating and deleting users. Like when a user registers on website it will automatically get created in OpenKM and in same way edit his information.
For adding new methods in web service which files need to be changed. Like I would like to add these methods in OKMAuth web service. Can you please help on this?
Re: Adding new method to web services
PostPosted:Sat Jan 24, 2015 9:33 am
by jllort
You should modify AuthService.java ->
REST ->
https://sourceforge.net/p/openkm/code/H ... rvice.java
SOAP ->
https://sourceforge.net/p/openkm/code/H ... rvice.java
My suggestion is not extend methods available on OKMAuth api, probably with combination of existing into new ws method call will be enought.
Re: Adding new method to web services
PostPosted:Mon Jan 26, 2015 11:36 am
by pavila
If I'm not wrong, these methods are already included in OpenKM 6.3
Re: Adding new method to web services
PostPosted:Mon Feb 02, 2015 10:08 am
by mohasinmujawar56
Yes, the methods are added in rest api (AuthService) not in the web services (OKMAuth). I am not sure whether these are interlinked or not. But I will follow the steps taken in rest api to add, update, delete user and role and create methods in OKMAuth web service.
Re: Adding new method to web services
PostPosted:Mon Feb 02, 2015 4:45 pm
by pavila
SOAP interface is deprecated and won't be maintained. Perhaps will be removed in a future OpenKM release. REST is much better and easier to use.