没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
<!--服务端配置-->
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="MagicEightBallServiceLib.MagicEightBallService" behaviorConfiguration="LoginBehavior">
<endpoint address =""
binding="netTcpBinding" bindingConfiguration="NetTcpSecurity"
contract="MagicEightBallServiceLib.IEightBall"/>
<!-- Need to add this so MEX knows the address of our service -->
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress ="net.tcp://localhost:8090/MagicEightBallService"/>
</baseAddresses>
</host>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="NetTcpSecurity">
<security mode="None" />
</binding>
</netTcpBinding>
<mexTcpBinding>
<binding name="NewBinding0" />
</mexTcpBinding>
</bindings>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="MagicEightBallServiceLib.MagicEightBallService" behaviorConfiguration="LoginBehavior">
<endpoint address =""
binding="netTcpBinding" bindingConfiguration="NetTcpSecurity"
contract="MagicEightBallServiceLib.IEightBall"/>
<!-- Need to add this so MEX knows the address of our service -->
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress ="net.tcp://localhost:8090/MagicEightBallService"/>
</baseAddresses>
</host>
</service>
</services>
<bindings>
<netTcpBinding>
<binding name="NetTcpSecurity">
<security mode="None" />
</binding>
</netTcpBinding>
<mexTcpBinding>
<binding name="NewBinding0" />
</mexTcpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="LoginBehavior">
<serviceMetadata httpGetEnabled="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Warning" propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="d:\temp\wcf.svclog" />
</sharedListeners>
</system.diagnostics>
</configuration>
<!--客服端配置-->
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<serviceBehaviors>
<behavior name="LoginBehavior">
<serviceMetadata httpGetEnabled="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Warning" propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="d:\temp\wcf.svclog" />
</sharedListeners>
</system.diagnostics>
</configuration>
<!--客服端配置-->
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
剩余6页未读,继续阅读
资源评论
zxszx
- 粉丝: 13
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功