Dynamic Webservice UrL consumption

  • Thread starter Thread starter Bit byte
  • Start date Start date
B

Bit byte

I want to write a C# application that uses a webservice - i.e. is a
webservice client. However, I want to be able to read the Url of the
webservice from a configuration file - since the webservice server
address may change.

So far I have not found any examples of how to do this - any ideas?
 
Bit Byte,
Basically the pattern is as follows:

MyWebServiceProxy proxy =new MyWebServiceProxy();
proxy.Url = ConfigurationSettings.AppSettings["webServiceUrl"];

proxy.MyMethodCall(param. etc);

That's it.
Peter
 
Back
Top