Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using reflection with a Web Service
Message
From
18/01/2005 03:06:02
 
 
To
18/01/2005 00:31:21
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
00977958
Message ID:
00977976
Views:
28
Ok, this accomplishes this:
                Dim loType As Type = loWebService.GetType()
                Dim loInfo As System.Reflection.MethodInfo = loType.GetMethod("GetCategory")
                Dim Param(0) As Object
                Param(0) = 0
                lcXMLReturned = loInfo.Invoke(loWebService, Param)
In this case, GetCategory is the name of the method. So, I can replace it with the method name included in the cursor. Then, I only have to adjust the parameter list to reflect what I need.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform