Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using reflection with a Web Service
Message
From
18/01/2005 00:31:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Using reflection with a Web Service
Miscellaneous
Thread ID:
00977958
Message ID:
00977958
Views:
90
I am not sure if this is doable with reflection. I have a Web Service reference which is making use of a method like this:
                lcXMLReturned = loWebService.GetMessage(Date.Now.Today, 44)
However, I am scanning a loop of records which contains all the methods I need to call. So, I am now doing something like this:
        For lnCounter = 1 To loData.Count
            lcCommand = loData(lnCounter).Row("Command")
            lcXMLReturned = loWebService.(lcCommand)
        Next
where the last line need to be adjusted with a dynamic reference to lcCommand. Is reflection able to do this?
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
Next
Reply
Map
View

Click here to load this message in the networking platform