随笔分类 -  Wcf

摘要:配置文件添加 调用代码更加简单 阅读全文
posted @ 2016-10-25 12:09 zslm___ 阅读(362) 评论(0) 推荐(0) 编辑
摘要:最简单的调用当然是服务引用,但是我更想原生调用,所以希望能通过报文有如下研究 1.报文分析 可以看到 1.wcf服务地址 http://dev.xxx.io/Demo/DemoService.svc?xsd=xsd0 http://dev.xxx.io/Demo/DemoService.svc?xs 阅读全文
posted @ 2016-10-25 11:51 zslm___ 阅读(514) 评论(0) 推荐(0) 编辑
摘要:using Autofac;using Autofac.Builder;using Autofac.Core; //实现Autofac扩展 public static AutofacRegisterWcf { public static IRegistrationBuilder<TServiceCo 阅读全文
posted @ 2016-06-23 11:23 zslm___ 阅读(1177) 评论(0) 推荐(0) 编辑
摘要:服务端app.config <?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <services> <service name="WCFTest.GreetService" behaviorCon 阅读全文
posted @ 2016-06-17 16:59 zslm___ 阅读(194) 评论(0) 推荐(0) 编辑
摘要:添加System.ServiceModel 引用 Wcf 服务端 class Program { static void Main(string[] args) { ServiceHost host = new ServiceHost(typeof(GreetService), new Uri("h 阅读全文
posted @ 2016-06-17 15:46 zslm___ 阅读(193) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示