Difference between revisions of "Webservices Guide - OpenKM 6.2"

From OpenKM Documentation
Jump to: navigation, search
Line 30: Line 30:
 
  wsdl.exe http://localhost:8080/OpenKM/OKMAuth?wsdl /out:OKMAuthService.cs
 
  wsdl.exe http://localhost:8080/OpenKM/OKMAuth?wsdl /out:OKMAuthService.cs
  
Pay attention in public OKMAuthService class, it'll be generated some method that you would like to change
+
Pay attention in public OKMAuthService class, it'll be generated some OKMAuthService() constructor that you would like to change to pass host param
  
 
  public OKMAuthService() {
 
  public OKMAuthService() {

Revision as of 11:30, 11 April 2010

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 pass host param

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

change to

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