We inherited some code that uses a third-party web service on an external server. Currently, all links are executed directly in the project and, thus, compiled to this place, etc. This problem is that there is a test and production server with different URLs for the web service.
Is there a simple way to make the link on the Internet more dynamic so that it can be defined in the web.config file and not require changing the actual source and recompiling to switch between servers?
source
share