#66:Service in WCF

A service is CLR type that exposes business functionality to Clients.In order to expose the Functionality as service,

1.The class/Interface  must be decorated by ServiceContractAttribute.

2.The Methods(functions inside class) exposed through Service must be decorated with OperationContractAttribute

[ServiceContract] //service contract
interface IHelloindigoService
[OperationContract] //method exposed via service with oepration contract annotaion
string HelloService();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s