try { //Proxy creation var proxy = new myservice(); var credentials = new NetworkCredential(); credentials.UserName = "username"; credentials.Password = "password"; //Credential proxy.Credentials = credentials; //Service call lblResponse.Text = proxy.getServerTime(); } catch (Exception ex) { lblResponse.Text = ex.Message; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)