Web.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="metadataBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors> <services>
<service behaviorConfiguration="metadataBehavior" name="Services.CalculatorService">
<endpoint binding="wsHttpBinding" contract="Contracts.ICalculator" />
</service>
</services> </system.serviceModel>
<system.web>
<authentication mode="Forms" />
</system.web>
</configuration>

Clent App.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="calculatorEndpointBehavior">
<clientVia viaUri="http://localhost:100/CalculatorService.svc" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_CalculatorService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" maxBufferPoolSize="" maxReceivedMessageSize=""
useDefaultWebProxy="true" allowCookies="false">
<security>
<transport realm="" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:96/CalculatorService.svc" behaviorConfiguration="calculatorEndpointBehavior" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_CalculatorService" contract="ServiceReference1.CalculatorService"
name="WSHttpBinding_CalculatorService">
<identity>
<servicePrincipalName value="host/it10" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>

IIS中把配置站点端口为96

tcpTrace配置

Listen on Port # : 100
Destination Server: localhost
Destination Port# :96

WCF.rar
tcpTrace.rar

最新文章

  1. js中兼容性问题的封装(能力检测)
  2. vs2010 mvc3安装时报错
  3. uploadify 一款优秀的上传插件
  4. mysql 查看用户的权限
  5. Code[VS]1690 开关灯 题解
  6. html中button的type属性
  7. Codevs 1158 尼克的任务
  8. 消除热块(hot block)
  9. [Java I/O] TextFile 工具类
  10. fragment中listview触发事件setOnItemClickListener不好使
  11. CentOS 7 更改网卡名为eth0
  12. 19.JavaScript
  13. Fiddler抓不到https的解决办法
  14. 快速排序 Java实现的快速排序
  15. iOS 图标
  16. python_装饰器模式
  17. php之快速入门学习-8(if-else)
  18. C# AutoMapper的简单扩展
  19. mysql索引之一:索引基础(B-Tree索引、哈希索引、聚簇索引、全文(Full-text)索引区别)(唯一索引、最左前缀索引、前缀索引、多列索引)
  20. vue.js+koa2项目实战(一)创建项目和elementUI配置

热门文章

  1. JS之事件(一)
  2. WebSocket API简介
  3. mysql 支持中文,防止程序乱码的方法
  4. mysql模糊查询like/REGEXP
  5. RHEL7.2下netcat工具安装教程
  6. 构建ASP.NET MVC5+EF6+EasyUI 1.4.3+Unity4.x注入的后台管理系统
  7. SSIS -&gt;&gt; Event Handler
  8. Hadoop2.2.0 安装笔记
  9. JFreeChart 图表生成实例(饼图、柱状图、折线图、时序图)
  10. PL/SQL 如何导出INSERT语句