AuthenticationService authService = nowy AuthenticationService ();
authService.CookieContainer = nowy System.Net.CookieContainer ();
authService.Url = "http://192.168.1.30:7001/p6ws/services/AuthenticationService";
Nazwa użytkownika loginObj = nowy Nazwa użytkownika ();
loginObj.UserName = Settings.Username;
loginObj.Password = Settings.Password;
loginObj.DatabaseInstanceId = (1);
loginObj.DatabaseInstanceIdSpecified = true;
LoginResponse loginReturn = authService.Login (loginObj);
Settings.CookieContainer = authService.CookieContainer;
|