Difference between revisions of "C Sharp client - OpenKM 5.1"

From OpenKM Documentation
Jump to: navigation, search
(Created page with '== 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?ws…')
 
Line 1: Line 1:
== 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 09:15, 12 April 2010

.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 (or create another method with this parameter):

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