Manage bindings and endpoints in config not code

J.D. Meier, Jason Taylor, Prashant Bansode, Carlos Farre, Madhu Sundararajan, Steve Gregersen.

Configuring your WCF service and clients using the web.config or app.config file vs. object model is advantageous because you can configure and change the transport, security, and other settings without having to rewrite and compile your code.

Object model code will override any configuration settings, so you can use a combination of both if necessary. Additionally, you can manage WCF service bindings, behaviors, and diagnostics using SvcConfigEditor.exe. By using this executable you can validate an existing configuration file against the standard System.Configuration schema and you can create new configuration files for services and clients using a wizard-based UI.

You can find the WCF service configuration editor in the Visual Studio tools menu or in the following drive location - <Drive Name>:\Program Files\Microsoft SDKs\Windows\v6.0\Bin

Last edited Apr 23, 2008 at 11:45 PM by prashantbansode, version 2

Comments

No comments yet.