WCF tcpTrace.exe配置
2024-09-16 03:03:29
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
最新文章
- js中兼容性问题的封装(能力检测)
- vs2010 mvc3安装时报错
- uploadify 一款优秀的上传插件
- mysql 查看用户的权限
- Code[VS]1690 开关灯 题解
- html中button的type属性
- Codevs 1158 尼克的任务
- 消除热块(hot block)
- [Java I/O] TextFile 工具类
- fragment中listview触发事件setOnItemClickListener不好使
- CentOS 7 更改网卡名为eth0
- 19.JavaScript
- Fiddler抓不到https的解决办法
- 快速排序 Java实现的快速排序
- iOS 图标
- python_装饰器模式
- php之快速入门学习-8(if-else)
- C# AutoMapper的简单扩展
- mysql索引之一:索引基础(B-Tree索引、哈希索引、聚簇索引、全文(Full-text)索引区别)(唯一索引、最左前缀索引、前缀索引、多列索引)
- vue.js+koa2项目实战(一)创建项目和elementUI配置
热门文章
- JS之事件(一)
- WebSocket API简介
- mysql 支持中文,防止程序乱码的方法
- mysql模糊查询like/REGEXP
- RHEL7.2下netcat工具安装教程
- 构建ASP.NET MVC5+EF6+EasyUI 1.4.3+Unity4.x注入的后台管理系统
- SSIS ->;>; Event Handler
- Hadoop2.2.0 安装笔记
- JFreeChart 图表生成实例(饼图、柱状图、折线图、时序图)
- PL/SQL 如何导出INSERT语句