Dynamically call web service from WSDL-is there a way?

C

Chris Bardon

I'm trying to figure out a way to dynamically call a web service based
on a WSDL file, and have had very little luck so far. After looking
at the proxy class and noticing that it just uses the Invoke method of
the base class, I thought that a generic class that called Invoke
would be an ideal solution. Unfortunately, it would appear that
trying to invoke a method does not work unless the bindings are set on
the proxy class, and there appears to be no way to do this at runtime.

I did find one solution that dynamically compiled proxy classes, but
there has to be a better way to do this. The end result is that I
want to be able to have the user provide a WSDL file, then dynamically
build a dialog that allows the user to call any method from that web
service.

Anyone have any ideas?
 
C

Chris Bardon

I've checked it out (this was the solution that dynamically compiled
proxy classes). Isn't there a better way to do this though?
Recompiling the proxy at runtime seems to be a little excessive to me.
 

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,769
Messages
2,569,582
Members
45,060
Latest member
BuyKetozenseACV

Latest Threads

Top