WCF Example

Click OK Button.

Click ok
After that your project looks like following image.

Open IService1.cs
//Make your method for adding two number
[OperationContract]
int Add(int a, int b);

After that you have to call this interface into service.svc.cs
public int Add(int a, int b)
{return a + b;
}

Your services is ready for consume.press F5
You have to see following window.

In your web application
AddServicerefrence



manoj choubeyPosted Apr 15, 2014, 6:54 AM
Nice
vamsiPosted Oct 14, 2013, 5:50 AM
good example thank you very much
Hari DarukumalliPosted Apr 18, 2013, 2:22 AM
thanks