How to enumerate and call .NET web service methods dynammically?

N

Naidu

Hi
I would like to enumerate methods exposed by a .NET web services dynamically from a windows application and call a specific one.
I think this can be done by following steps: (Please correct me if I am wrong here.)
1. Getting the WSDL
2. Generating the Proxy
3. Enumerating web methods
4. Calling the web method

Could you please let me know how to perform these steps in C#?

Thanking you in anticipation
Naidu
 
J

Jan Tielens

Alternativly you could process the WSDL XML yourself to discover the
methods.

Or you can use Christan Weyer's tool:
GotDotNet User Sample: Dynamically invoke XML Web Services - significantly
improved
http://tinyurl.com/yvqtp
Did you ever think about invoking your XML Web Services dynamically without
having to generate a client side proxy class at design/compile time? No need
to know the exact Web Service description and endpoint at compile/design
time. Just get your WSDL from whereever you want, specify the type to
instantiate and the methods to call ... voila! Glance of features: - No need
to add WSDL descriptions during design time - Point-and-run Web Services
invocation functionality (generates in-memory assemblies) - Also resolves
imports of external schemas - Works with complex types - Provides a better
means to completely hide the Web Services bound functionality from client
apps -> think Grid computing - Caching mechanism to improve performance of
already 'well known' Web Services (pre-compiled and cahced assemblies) -
Access the raw SOAP messages for request and response - Sample client
application for testing purposes Please check out the included DynWSLib
README.txt file!

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Naidu said:
Hi
I would like to enumerate methods exposed by a .NET web services
dynamically from a windows application and call a specific one.
 
N

Naidu

Cweyer sample is builing the assembly on fly to invoke web methods. Is it possible to invoke web methods using HTTWebRequest? I mean without creating the proxy and the assembly.

Thanks
Naidu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top