Ask a Question related to ASP.NET Web Services, Design and Development.
-
Naidu #1
How to enumerate and call .NET web service methods dynammically?
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
Naidu Guest
-
#40459 [NEW]: Stat and Dir stream wrapper methods do not call constructor
From: clay at killersoft dot com Operating system: irrelevant PHP version: 5.2.1 PHP Bug Type: Streams related Bug... -
Getting list of methods for a web service
send the HTTP request to the webservice. Ex: http://localhost/WebTest/MySevice.asmx?WSDL get the XML response to DOM or XML parser and find... -
Server-Side Async Web Methods call fails
Hi. I have WS implementing DIME 1.0. Primary client is ASP.NET Web application consuming WS through proxy. I though it might be beneficial from... -
How to call different methods in one PHP file?
I'm a PHP newbie coming from experience with ASP.NET. I want to have a separate PHP file to support each HTML PHP page. This would be the... -
Enumerate Methods
In VS 6.0, there is a tool named "OLE Viewer". It can check the interface information for a COM component. You can run it, click menu "File/View... -
Jan Tielens #2
Re: How to enumerate and call .NET web service methods dynammically?
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
[url]http://tinyurl.com/yvqtp[/url]
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: [url]http://weblogs.asp.net/jan[/url]
"Naidu" <anonymous@discussions.microsoft.com> wrote in message
news:97E86403-7BF3-45B6-AD5E-E840DF10F2F0@microsoft.com...dynamically from a windows application and call a specific one.> Hi
> I would like to enumerate methods exposed by a .NET web serviceswrong here.)> I think this can be done by following steps: (Please correct me if I am> 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
>
Jan Tielens Guest
-
Naidu #3
Re: How to enumerate and call .NET web service methods dynammically?
Thanks a lot Jan.
Naidu Guest
-
Naidu #4
Re: How to enumerate and call .NET web service methods dynammically?
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
Naidu Guest
-
Christian Weyer [MSDN RD] #5
Re: How to enumerate and call .NET web service methods dynammically?
Well, your observation is correct.
Of course you can invoke a Web service using any XML and HTTP functionality
(includingthe way you mention). But be aware that you then have to handle
all the WSDL and SOAP stuff on your own - and this is very error prone (to
say the least)!
The advantage of my approach is that I use the .NET Fx internal libraries to
achieve all kinds of safety when invoking a service. And through the buil-in
caching mechanism performance should not be a big matter ...
Cheers,
--
Christian Weyer
Microsoft .NET & Service Oriented Architectures
Consulting, Developing, Writing & Teaching
[Microsoft Regional Director, Germany]
[url]http://www.regionaldirectors.de/[/url]
* XML Web Services: [url]http://www.xmlwebservices.cc/[/url]
* Weblog: [url]http://weblogs.asp.net/cweyer/[/url]
"Naidu" <anonymous@discussions.microsoft.com> wrote in message
news:10D05F2C-7F86-4061-972B-372E05F1B2A0@microsoft.com...possible to invoke web methods using HTTWebRequest? I mean without creating> Cweyer sample is builing the assembly on fly to invoke web methods. Is it
the proxy and the assembly.>
> Thanks
> Naidu
Christian Weyer [MSDN RD] Guest
-
Unregistered #6
How to enumerate and call .NET web service methods dynammically?
How to enumerate and call .NET web service methods dynammically?
Unregistered Guest



Reply With Quote

