Executing .NET web service methods from ASP.NET webform

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:


6                inf.UseDefaultCredentials = true;
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


I think this article have answer for your question

0 anonymouswrites 10/15/2008 3:06:44 PM

(Thread closed)