Difference between revisions of "Webservices Guide - OpenKM 6.2"
From OpenKM Documentation
Line 26: | Line 26: | ||
'''Generating C# Webservices in Windows''' | '''Generating C# Webservices in Windows''' | ||
+ | |||
.Net framework comes with wsdl.exe utility ( possible it's not in your default path) | .Net framework comes with wsdl.exe utility ( possible it's not in your default path) | ||
Revision as of 11:31, 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:
- http://localhost:8080/OpenKM/OKMAuth?wsdl
- http://localhost:8080/OpenKM/OKMDocument?wsdl
- http://localhost:8080/OpenKM/OKMFolder?wsdl
- http://localhost:8080/OpenKM/OKMRepository?wsdl
- http://localhost:8080/OpenKM/OKMSearch?wsdl
- http://localhost:8080/OpenKM/OKMNotification?wsdl
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; }