WCF (Window communication foundation) services are easy to build. Steps need to follow are:
Step 1: Define Data contract (classes which you want to share among client for communication format)
Step 2: Define Service Contract (Interface containing declaration of all methods exposed to client) and declaring method in service interface which you want to expose to client.
Step 3: Implementing and defining methods in service class.
Step 4: Adding reference to client project.
Step 5: Making service client object.
Step 6: You are ready to use now.
Link for example covered:
www.techsapphire.in/index/inse...
13 фев 2016