RestFul java example for creating new folder

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
RescatorX
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Tue Apr 03, 2018 11:45 am

RestFul java example for creating new folder

Post by RescatorX » Wed Apr 04, 2018 11:43 am

I need to use 'createSimple' method of OpenKM folder service to create new folder in java.
By the documentation it must be executed as POST method using XML or JSON structure, but when I run it using CURL, the body contains just the new folder path without parameter name (watched in Fiddler) and the json and/or xml is empty.
I am trying to create the client to call the createSimple method but I get only 500 Internal Server Error....
Can you please show an example ?
Thank you in advance.

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

Re: RestFul java example for creating new folder

Post by jllort » Thu Apr 05, 2018 3:24 pm


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest