In my earlier blog I wrote about Contracts and Service Contract. Please refer this link Service Contract in WCF
Operation Contract
Operation Contracts are nothing but the functions or methods exposed to the client which may or may not return to perform some logic at server end.
A simple Operation Contract with Service Contract will look like this.
[ServiceContract]
public interface ICalculate
{
[OperationContract]
int Sum(int num1, int num2);
//A function to add 2 numbers which will return an integer.
//A function to add 2 numbers which will return an integer.
}
Related blogs to WCF Service-
Related blogs to WCF Service-
- Introduction to WCF
- ABC of WCF
- Basics of WCF Architecture
- WCF vs Web Service
- What is XML serialization?
- WCF Binding
- Create first WCF application
- Fault Contract in
- WCF Data Contract vs Message Contract
- Message Contract
- Data Contract Serialization and De-Serialization
- Data Contract in WCF
- Operation Contract in WCF
- Service Contract in WCF
- How to host a WCF service in IIS?
- WAS Hosting in WCF
- Self Hosting in WCF
- How to create WCF RESTful Service.