I have a .NET developed web service application running on IIS in our office. Few web methods are supplied from this web service application allowing any applications to interact with the web service application. In order to consume or execute these web methods it is required to authenticate the user first.
Below code shows an example to read some data from web services application:
true; 6 inf.UseDefaultCredentials = true; 7 8 try 9 { 10 ItemDetailsEx2[] details = api.GetItems(userId, new long[] { itemId }); 11 } 12 catch (Exception ex) 13 { 14 Console.WriteLine(ex.Message); 15 }0
![]()
sukumarraju 10/15/2008 2:28:10 PM
http://www.xefteri.com/articles/show.cfm?id=15
I think this article have answer for your question