Dear Team,
I am not sure if it is the right forum to ask this question but i am learning to use openKM with SDK1.1 and openKM version 6.3.12 community with JDK 1.8.
Basically I am just trying to execute the code below:
When I execute the code the following exception is displayed:
Thanks in advance
I am not sure if it is the right forum to ask this question but i am learning to use openKM with SDK1.1 and openKM version 6.3.12 community with JDK 1.8.
Basically I am just trying to execute the code below:
Code: Select all
*/
public class TestSd {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
// Return false
ws.isValidFolder("/okm:root/logo.png");
// Return true
ws.isValidFolder("/okm:root");
} catch (Exception e) {
e.printStackTrace();
}
}
}
When I execute the code the following exception is displayed:
Code: Select all
Can anyone please tell me what i am doing wrong?com.openkm.sdk4j.exception.UnknowException: HTTP error code 406:
at com.openkm.sdk4j.impl.FolderImpl.isValidFolder(FolderImpl.java:480)
at com.openkm.sdk4j.OKMWebservice10.isValidFolder(OKMWebservice10.java:536)
at mu.service.openmk.openmkservicedemo.TestSd.main(TestSd.java:19)
Thanks in advance