I added java webservices using add web reference in visual studio.
I am calling in the .net client like this. But still service asking to send username password..what might be the problem???
var proxy = new myservice();
var credentials = new NetworkCredential();
credentials.UserName = "username";
credentials.Password = "password";
proxy.Credentials = credentials;
lblResponse.Text = proxy.getServerTime();
catch (Exception ex)
lblResponse.Text = ex.Message;
Can anybody help me out.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)