Changing a service reference url in code

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a dll that has a Service Reference - this is actually a Web Service but I have added it as a Service Reference .NET 3.5.
<br/>
The URL of this service is for testing purposes.  Is it possible to change the URL of this service programmatically based on a setting in for example my App.Config file?
<br/>
I want the application to be unaware of whether it is calling the Live or the Test service.

View the full article
 
Back
Top