Wednesday, August 28, 2013

WCF Services

A good tutorial to follow
http://wcftutorial.net/

Create a sample application
http://www.codeproject.com/Articles/97204/Implementing-a-Basic-Hello-World-WCF-Service

Svcutils.exe command to generate WCF Client

Following are the steps to generate config and proxy files for WCF Client


  1.  Navigate to your Project Director , type cmd /K "cd /d projectdirector"     Check the location of svcutils.exe file on windows server 2008 it is "C:\Program Files (x86)\Microsoft          SDKs\Windows\v7.0A\Bin"
  2. Run this command   "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\SvcUtil.exe" /language:cs   /out:generatedProxy.cs /config:app.config url of ur service file


This will generate config and proxy files for your project.

References
http://msdn.microsoft.com/en-us/library/ms733133.aspx
http://www.codeproject.com/Articles/97204/Implementing-a-Basic-Hello-World-WCF-Service