Problem with createFolderSimple using Java SDK

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
giovanni.ciccarello
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Sun Mar 19, 2017 9:34 am

Problem with createFolderSimple using Java SDK

Post by giovanni.ciccarello » Sun Mar 19, 2017 9:47 am

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.

jllort
Moderator
Moderator
Posts: 9117
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Problem with createFolderSimple using Java SDK

Post by jllort » Sun Mar 19, 2017 10:44 am

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

giovanni.ciccarello
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Sun Mar 19, 2017 9:34 am

Re: Problem with createFolderSimple using Java SDK

Post by giovanni.ciccarello » Sun Mar 19, 2017 1:49 pm

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.

giovanni.ciccarello
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Sun Mar 19, 2017 9:34 am

Re: Problem with createFolderSimple using Java SDK

Post by giovanni.ciccarello » Sun Mar 19, 2017 2:49 pm

It works, thanks a lot!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest