Webservices Guide - OpenKM 6.2

From OpenKM Documentation
Revision as of 12:31, 11 April 2010 by Jllort (talk | contribs)

Jump to: navigation, search

OpenKM has a complete API exposed via Webservices. This means you can call any of this API method from any programming language which supports SOAP protocol, like Java, PHP or Python between others. This feature make possible to create a custom client, or integrate with third party applications like a CRM or a CMS.

These are the WSLD available:

OKM Webservices API

Sample clients


Generating C# Webservices in Windows

.Net framework comes with wsdl.exe utility ( possible it's not in your default path)

wsdl.exe http://localhost:8080/OpenKM/OKMAuth?wsdl /out:OKMAuthService.cs


Pay attention in public OKMAuthService class, it'll be generated some OKMAuthService() constructor that you would like to change to take advantatge of host variable


public OKMAuthService() {
    this.Url = http://127.0.0.1:8080/OpenKM/OKMAuth;
}

change to

public OKMAuthService(String host) {
    this.Url = host;
}