随笔分类 - Wcf
摘要:最简单的调用当然是服务引用,但是我更想原生调用,所以希望能通过报文有如下研究 1.报文分析 可以看到 1.wcf服务地址 http://dev.xxx.io/Demo/DemoService.svc?xsd=xsd0 http://dev.xxx.io/Demo/DemoService.svc?xs
阅读全文
摘要:using Autofac;using Autofac.Builder;using Autofac.Core; //实现Autofac扩展 public static AutofacRegisterWcf { public static IRegistrationBuilder<TServiceCo
阅读全文
摘要:服务端app.config <?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <services> <service name="WCFTest.GreetService" behaviorCon
阅读全文
摘要:添加System.ServiceModel 引用 Wcf 服务端 class Program { static void Main(string[] args) { ServiceHost host = new ServiceHost(typeof(GreetService), new Uri("h
阅读全文