Hi experts,
I am using web services to upload/delete files, everything works fine except that lately I also need to call 'purgeTrash' function via webservice, however I get the following errors which I don't get from other web service methods:
My code:
Many thanks for your help!
Ray
I am using web services to upload/delete files, everything works fine except that lately I also need to call 'purgeTrash' function via webservice, however I get the following errors which I don't get from other web service methods:
My code:
Code: Select all
Concoles message:
OKMRepository oKMRepository = new OKMRepositoryProxy();
try {
oKMRepository.purgeTrash(token);
} catch (AccessDeniedException e) {
System.err.println("AccessDeniedException: "+e.getMessage());
} catch (RepositoryException e) {
System.err.println("RepositoryException: "+e.getMessage());
} catch (DatabaseException e) {
System.err.println("DatabaseException: "+e.getMessage());
} catch (RemoteException e) {
System.err.println("RemoteException: "+e.getMessage());;
}
Code: Select all
The point I couldn't figure out is that why I can delete folder via web service but not 'purgeTrash' method? is that because this method require different access right or something?RemoteException: ; nested exception is:
java.net.ConnectException: Connection refused: connect
Many thanks for your help!
Ray