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

M

Marc Gravell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top