DYNAMICALLY CREATING WRAPPERS FOR A WSDL

  • Thread starter Thread starter Germic
  • Start date Start date
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
 
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!!
 
Back
Top