While learning WCF the first thing came to my mind was Enterprise Services Management (This days I am playing my cards with Live Service Management), it's ok if you plan 2-3-10-20-50 number of the services for your business but when you are planning services in big bulk, distributed deliveries of services, different assemblies, managing behaviors/contracts/endpoints for various clients/hosts, etc…. there could be N number of the possibilities for various service management scenarios. And my thoughts and excitement brought me to the administrative tool called "Microsoft Service Configuration Editor". Microsoft is supplying this tool with "Microsoft Windows SDK v6.0A" itself, it's very useful tool for the service management (especially WCF).
WCF is saving configuration settings in web.config / app.config files and it's very hard to manage manually by editing.
Below I am just trying to put some screens and my tutorial experience to you, hope you like it.
Here for the demonstration, I am using the sample scenario called "TrustedFacade " which you can find in Microsoft WCF Samples ("\WCF_WF_CardSpace_Samples\WCF\Scenario\TrustedFacade"). Not going inside the code or development part, I am going to focus only on the deployment and administration with the Configuration Editor.
Steps, for configuring the service:
- You can open the tool from "Start Menu\Programs\Microsoft Windows SDK v6.0A\Tools\ Microsoft Service Configuration Editor" or go to the next path "Microsoft SDKs\Windows\v6.0A\Bin\SvcConfigEditor.exe".
- Click on crate a new service, it will bring you one service creation wizard.
- Click on the Browse Button and drive the wizard to the service dll, it can be GAC or File Location.
- After selecting the service, click on Next button, it will bring you to service contract page. It will show you all contracts available in one dropdown list in service, an appropriate contract you select and then move ahead with the next phase of configuration.
- Next screen will give you option to decide the communication mode, where you can select an appropriate mode of communication channels.
- Next screen will bring you selection of interoperability option.
- Now, the coming screen will ask you the address of your endpoint.
- After performing the above steps, now your wizard is ready to create configuration.
Now your service has been configured, the tool also provide facility to manage other configuration like hosts, base addresses, multiple endpoints, binding configuration, contracts, listening uri, etc. I am here just focusing on the service configuration, later on I will publish client and other configuration options available with in the tool. So let's coming back to services, the below image shows you, how to add multiple base location in host.
You can also add multiple endpoints to the service, as well as you can add certifications, identity and headers to messages and channels. Please check the blow screens to understand the configurations options for end points.
This tool can give very good flexibility with the management and administration of the WCF services on large scale.
I will back with some more interesting articles on WCF as my study progress with it.
Thanks to bear with me during the article, please send your feedback to email@example.com.