All,
I am trying to create a new Web Service in VS2008. When I add a "Service Reference" in the IDE, it asks for a static URL for the webservices, which I provide and everything works well. The URL is written into the .disco and .wsdl file on the solution.
However, I have my setup with a DEV, a QA , and PROD environments so that it can be throughly tested in Development and at Quality Assurance and finally installed onto the PROduction system. Each of these environments have a different URL for the IIS server where the webservices are installed.
How can I use the same code and have the referenced Web Service point to any of the three servers depending on its environment?
Even changing an ini/app.config file is OK, I just don't know how to do it, and tell the service to use the new URL. I have written a C# console app, that would like to reference and use a Vb.net webservice on out central server.