All the communication in WCF occurs through endpoints.
Endpoint consist three things
1. Address : Specify the web address through which WCF service can be accessed. This is an URL
2. Binding : Specify how client should bind with WCF service. WCF provides different binding like netTCPBinding, basicHttpBinding,msmqBinding etc.
3. Contract : WE need to give interface name of WCF service here.
Example :
<endpoint address="http://localhost:9001/CalculatorService" binding="basicHttpBinding" contract="CalculatorService.ICalculatorService"/>
Endpoint consist three things
1. Address : Specify the web address through which WCF service can be accessed. This is an URL
2. Binding : Specify how client should bind with WCF service. WCF provides different binding like netTCPBinding, basicHttpBinding,msmqBinding etc.
3. Contract : WE need to give interface name of WCF service here.
Example :
<endpoint address="http://localhost:9001/CalculatorService" binding="basicHttpBinding" contract="CalculatorService.ICalculatorService"/>
No comments:
Post a Comment