标签:框架 wcf 项目 绑定 引用 res tac sel tin
1、 WCF是SOA(面向服务的框架)的开发模板
2、WCF的服务不能孤立的存在,必须寄宿于一个运行着的进程(称为宿主),为服务指定给宿主的过程称为服务寄宿(Service Hosting)。常用的寄宿方式:自我寄宿(Self-Hosting)和IIS寄宿。VS中的WCF模板项目,就是用的IIS寄宿。
3、创建Self-Hosting程序,要引用 System.ServiceModel.dll 。
创建服务契约接口:IService.cs 应用 System.ServiceModel.ServiceContractAtribute特性,定义成服务契约
创建服务:Service.cs ,继承IService.cs接口
服务寄宿:使用终结点(Endpoint),在进程中寄宿。终结点由:地址(Address)、绑定(Binding)、契约(Contact)组成。
标签:框架 wcf 项目 绑定 引用 res tac sel tin
原文地址:http://www.cnblogs.com/slarkleoric/p/6804850.html