共 2 篇文章 |
|
第一步:定义WCF服务契约(创建项目,加入引用,定义Interface)第二部:引入WCF服务契约(添加具体服务函数)第三部:构架WCF服务,运行WCF服务(添加Uri,定义服务对象地址,运行服务)第四部:利用工具访问服务,自动生成WCF服务代理的代码文件第五部:配置一个简单的WCF客户端(用客户端引入服务代理,通过服务代理来访问服务)第六部:运行... 阅350 转0 评0 公众公开 14-05-31 19:02 |
} } class Program { static void Main(string[] args) { using (ServiceHost host = new ServiceHost( typeof(StringReverser), new Uri[]{ new Uri("http://localhost:8000"), new Uri("net.pipe://localhost") })) { host.ChannelFactory<IStringReverser> pipeFactory = new ChannelFactory<IStringReverser&... 阅75 转0 评0 公众公开 14-05-31 01:16 |