How to consume different web services on dev and live environments?

  • Thread starter Thread starter Danny Ni
  • Start date Start date
It depends at what point you can make the decision about where the
endpoint is, and how you are deploying it. For example, if you are
using ClickOnce you cannot change the app.config post-build, as the
crypto-hash won't match and it will refuse to run. Personally, I'd
have this as part of my automated build process - i.e. update the
app.config just before build.

Another option is runtime; WCF supports named endpoints, so you could
have all of them there, and decide at runtime which to use.

Marc
 
Back
Top