-
Change A Web Service
I'd like my code to use a different web service depending on which server it's running on. The services are exactly the same, one is for the test version of an app, the other for live.
Both services are defined as a Web Reference, one as TestService the other as LiveService however I'm not sure how to tell my code which one to use, depending whether it's on the Test or Live server.
Can anyone help please?
-
Re: Change A Web Service
Presumably you are using an app config file (if you aren't then use one).
Then when you deploy, you put the appropriate url in the app.config file.