AuthenticationService authService = nieuwe AuthenticationService ();
authService.CookieContainer = nieuwe System.Net.CookieContainer ();
authService.Url = „http://192.168.1.30:7001/p6ws/services/AuthenticationService“;
Login loginObj = nieuwe Login ();
loginObj.UserName = Settings.Username;
loginObj.Password = Settings.Password;
loginObj.DatabaseInstanceId = 1;
loginObj.DatabaseInstanceIdSpecified = waar;
LoginResponse loginReturn = authService.Login (loginObj);
Settings.CookieContainer = authService.CookieContainer;
|