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?
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?