Sample client

Your first class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.openkm.sdk4csharp;
using com.openkm.sdk4csharp.bean;
using com.openkm.sdk4csharp.impl; namespace OKMRest { class Program { /** * Sample OpenKM JDK client */ static void Main(string[] args) { String host = "http://localhost:8080/openkm"; String username = "okmAdmin"; String password = "admin"; OKMWebservice ws = OKMWebservicesFactory.newInstance(host);
try {
ws.login(user, password); foreach(Folder fld in ws.folder.getFolderChildren("14530e37-ac51-4a26-8049-0146a5916dec")) { System.Console.WriteLine("Folder -> " + fld.path); } } catch (Exception e) { System.Console.WriteLine(e.ToString()); }
System.Console.ReadKey(); } } }