Page 1 of 1

Problem with createFolderSimple using Java SDK

PostPosted:Sun Mar 19, 2017 9:47 am
by giovanni.ciccarello
Hi all,
I'm using SDK for Java (version 1.1) in order to contact the web service and try to send some documents to demo.openkm.com.
I've been using this version of SDK from a couple of months, but yesterday I had a problem with createFolderSimple: my method threw an UnknownException and the message said "HTTP Error code: 301". I imagine the web service is trying to redirect my request and I'm wondering why.
My browsers are Mozilla Firefox and Google Chrome.

Could you explain me what is the problem, please? Thanks in advance.

Re: Problem with createFolderSimple using Java SDK

PostPosted:Sun Mar 19, 2017 10:44 am
by jllort
Might be several things. Take in consideration online demo is professional version and with this version should be used SDK 2.5. To test SDK 1.1 must have installed OpenKM community version.

About error 301, usually it's http warning indicating that the url has been moved. See http://demo.openkm.com now always jump to https://demo.openkm.com ( SSL ). Try with https protocol rather http

Re: Problem with createFolderSimple using Java SDK

PostPosted:Sun Mar 19, 2017 1:49 pm
by giovanni.ciccarello
So I will try to test my client against an OpenKM Community edition installation on localhost.
I will post an update as soon as the application works.
Thank you for your reply.

Re: Problem with createFolderSimple using Java SDK

PostPosted:Sun Mar 19, 2017 2:49 pm
by giovanni.ciccarello
It works, thanks a lot!