Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using reflection with a Web Service
Message
De
18/01/2005 03:06:02
 
 
À
18/01/2005 00:31:21
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00977958
Message ID:
00977976
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform