Difference between revisions of "Csharp webservice dll"
From OpenKM Documentation
Line 1: | Line 1: | ||
Download [[File:OKMWebservice.zip]] | Download [[File:OKMWebservice.zip]] | ||
+ | |||
+ | '''Available api:''' | ||
+ | * Webservices for OpenKM Professional 6.4 | ||
+ | * Webservices for OpenKM Professional 6.2 | ||
+ | * Webservices for OpenKM Community 6.0+ | ||
+ | |||
+ | == Example of use == | ||
+ | <source lang="csharp"> | ||
+ | String host = "http://localhost:8080"; | ||
+ | String user = "okmAdmin"; | ||
+ | String password = "admin"; | ||
+ | |||
+ | int serverVersion = OKMWebServiceFactory.PROFESSIONAL_6_4; | ||
+ | OKMWebservice okmWebservice = null; | ||
+ | if (serverVersion == OKMWebServiceFactory.PROFESSIONAL_6_4) | ||
+ | { | ||
+ | okmWebservice = OKMWebServiceFactory.getInstance(host, user, password, OKMWebServiceFactory.PROFESSIONAL_6_4); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | okmWebservice = OKMWebServiceFactory.getInstance(host, user, password, OKMWebServiceFactory.PROFESSIONAL_6_2); | ||
+ | } | ||
+ | </source> | ||
[[Category: Extension Guide]] | [[Category: Extension Guide]] |
Revision as of 11:57, 23 September 2013
Download File:OKMWebservice.zip
Available api:
- Webservices for OpenKM Professional 6.4
- Webservices for OpenKM Professional 6.2
- Webservices for OpenKM Community 6.0+
Example of use
String host = "http://localhost:8080";
String user = "okmAdmin";
String password = "admin";
int serverVersion = OKMWebServiceFactory.PROFESSIONAL_6_4;
OKMWebservice okmWebservice = null;
if (serverVersion == OKMWebServiceFactory.PROFESSIONAL_6_4)
{
okmWebservice = OKMWebServiceFactory.getInstance(host, user, password, OKMWebServiceFactory.PROFESSIONAL_6_4);
}
else
{
okmWebservice = OKMWebServiceFactory.getInstance(host, user, password, OKMWebServiceFactory.PROFESSIONAL_6_2);
}