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, 2:54 AM EDT
Nice
vamsiPosted Oct 14, 2013, 1:50 AM EDT
good example thank you very much
Hari DarukumalliPosted Apr 17, 2013, 10:22 PM EDT
thanks