Hi,
I have configured OpenKM 6.2.4 with tomcat.
I have created a user "test" having ROLE_USER from admin tab.
while obtaining authentication token using "test" users credentials to access the folders and document list via WDSL webservice, iam getting RepositoryException, but the same is working for default user "okmAdmin" and iam aslo able to view the document and folder list.
While investigating in OpenKM, i found out there was no folder for user "test" under /okm:trash, /okm:personal, /okm:mail but folder for user "okmAdmin" were available under above mentioned locations.
Below is the sample code iam using to access the web service :
Java 1.6
Tomcat bundle 7.0.27
OpenKM 6.2.4
I have configured OpenKM 6.2.4 with tomcat.
I have created a user "test" having ROLE_USER from admin tab.
while obtaining authentication token using "test" users credentials to access the folders and document list via WDSL webservice, iam getting RepositoryException, but the same is working for default user "okmAdmin" and iam aslo able to view the document and folder list.
While investigating in OpenKM, i found out there was no folder for user "test" under /okm:trash, /okm:personal, /okm:mail but folder for user "okmAdmin" were available under above mentioned locations.
Below is the sample code iam using to access the web service :
Code: Select all
here is the stack trace of exception :authURL = new URL(OKMAuth_Service.class.getResource("."), baseUrl+"/OKMAuth?wsdl");
folderURL = new URL(OKMFolder_Service.class.getResource("."), baseUrl+"/OKMFolder?wsdl");
documentURL = new URL(OKMDocument_Service.class.getResource("."), baseUrl+"/OKMDocument?wsdl");
OKMAuth_Service authService = new OKMAuth_Service(authURL, new QName("http://ws.openkm.com", "OKMAuth"));
OKMAuth auth = authService.getOKMAuthPort();
authToken = auth.login("test", "test");
Code: Select all
Here is my environment details :com.openkm.ws.client.auth.RepositoryException_Exception: 1b450df3-c179-49e9-8944-bd556eaf54b7 : /okm:trash
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
at $Proxy30.login(Unknown Source)
at TestOpenKM.main(TestOpenKM.java:30)
Java 1.6
Tomcat bundle 7.0.27
OpenKM 6.2.4