Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2005

Tip: Looking for answers? Try searching our database.

Calling a webservice at runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ash - 23 Sep 2005 17:14 GMT
I am passing the webservicename, method to be executed and the
parameters for that method from a page to an intermediate webservice
function which in turn needs to instantiate the webservicename passed
execute the method based on the parameters passed and return the value.

Does anyone know how to do this?
Tasos Vogiatzoglou - 24 Sep 2005 16:38 GMT
First solution
You can pass the type name of the webservice proxy and the appropriate
method.
Then you can instantiate the class by reflection and call the method
(again by reflection).

Activator documentation:
ms-help://MS.MSDNQTR.2005APR.1033/cpref/html/frlrfsystemactivatorclasstopic.htm

Second solution
You can create your own generic SoapHttpClientProtocol class but I do
not know if this will be easier than the first one.

Tasos

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.