DYNAMICALLY CREATING WRAPPERS FOR A WSDL

G

Germic

Hi,
How can we dynamically create a wrapper for an webservice?

Example : I write an client application in C# that consumes a webservice, I
need that application to read the URL
of the WSDL file from an .INI file and then compile and create wrappers for
it. (So incase one webservice is down then i could point my application to
another URL)

Of course, the functions THAT ARE CONSUMED by the client application would
be of the same prototype in both the webservices, although there might be
some more or some less functions that are exposed in each of the webservices
that my client does not consume.

Thanks
 
G

Germic

Got this too!!

Have to change the constructor in the Reference.cs file from xyz() to
xyz(string url) and then call the web service.
Also have to change the properties of the reference to the webservice from
static to dynamic

Thanks anyway!!
 

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

Top