Last post Dec 04, 2013 12:54 AM by phpasp
Dec 02, 2013 01:31 AM|phpasp|LINK
I want to call a web service that was written in Java with basic authentication.
I use asp.net (c#). I found some code but I couldn't call the web service.
How can i call?
NetworkCredential netCredential = new NetworkCredential("username", "password");
Uri uri = new Uri(serv.Url);
ICredentials credentials = netCredential.GetCredential(uri, "Basic");
serv.Credentials = credentials;
serv.PreAuthenticate = true;
Dec 02, 2013 03:43 PM|kushalrdalal|LINK
Check this link -
Dec 02, 2013 10:52 PM|Amy Peng - MSFT|LINK
I saw that your service is java web service, then if we want to call java web service with basic authentication, please try to check the following:
#Java Web Service client basic authentication:
#How to invoke Java web service in ASP.net using C#:
Dec 02, 2013 11:29 PM|mahedee|LINK
Dec 04, 2013 12:54 AM|phpasp|LINK
Thank you .