Hosting and consuming WCF services without configuration files
- by martinsj
In this post, I'll demonstrate how to configure both the host and the client in code without the need for configuring services i the <system.serviceModel> section of the config-file. In fact, you don't need a <system.serviceModel> section at all. What you'll do need (and want) sometimes, is the Uri of the service in the…