Invoking Web Service wothout client proxy

C

Chris

Hi all.
Does anybody know how to invoke web methods on the fly - without having to
build a client side proxy.
I know this is possible with the soap toolkit - I would not want so use it
though seeing that it is not managed.
Any ideas would be great!

Thanks
 
J

Jan Tielens

Sure, take a look at Christian Weyer's great library:
http://weblogs.asp.net/cweyer/archive/2003/07/07/9769.aspx

"Did you ever think about invoking your XML Web Services dynamically without
having to generate a client side proxy class at design/compile time with
wsdl.exe or Visual Studio .NET? - No need to know the exact Web Service
description and endpoint at compile/design time. Just get your WSDL from
UDDI (or from wherever you want, e.g. XMethods), specify the type to
instantiate and the methods to call ... voila! Can be used from any .NET
application or even an unmanaged resource."

--
Greetz

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

Chris

Thanks for the reply But.
He is actualy building the assembly on the fly.
I do not want this. I want to invoke the webmethod without that - as was
possible with the soap toolkit.
I am thinking along the lines of using HTTPWebRequest to invoke the soap
call.

Thanks
 
M

Michael Pearson

I'm with Christan on this one. What do you hope to gain by NOT having the
client side proxy?

Michael

"Christian Weyer [MSDN RD]"
Trust me: the SOAP Toolkit did exactly the same (well, to a certain extent)
... but not based on a .NET assembly, obviously. You have approx. the exact
same overhead with my approach (and I am using caching addtionally) as
comapred to STK.

I don't recommend anybody to handcraft any SOAP requests and to parse any
SOAP responses - this is just too fragile and error prone. IMHO.

Cheers,
--
Christian Weyer

Microsoft .NET & Service Oriented Architectures
Consulting, Developing, Writing & Teaching

[Microsoft Regional Director, Germany]
http://www.regionaldirectors.de/

* XML Web Services: http://www.xmlwebservices.cc/
* Weblog: http://weblogs.asp.net/cweyer/



Chris said:
Thanks for the reply But.
He is actualy building the assembly on the fly.
I do not want this. I want to invoke the webmethod without that - as was
possible with the soap toolkit.
I am thinking along the lines of using HTTPWebRequest to invoke the soap
call.

Thanks

use
 

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,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top