最简WCF服务器端配置文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了最简WCF服务器端配置文件相关的知识,希望对你有一定的参考价值。
ABC - Address Binding ContractNote that the Service Name and Contract must match a real live type (case Sensitive)
Binding name is also case sensitive.
<system.serviceModel> <services> <service name="WCFServiceStuff.DoStuffImpl"> <endpoint address="net.tcp://localhost:8001" binding="netTcpBinding" contract="WCFServiceStuff.IDoStuff" /> </service> </services> </system.serviceModel> With MetaData added <system.serviceModel> <services> <service name="WCFServiceStuff.DoStuffImpl" behaviorConfiguration="mex"> <endpoint address="net.tcp://localhost:8001" binding="netTcpBinding" contract="WCFServiceStuff.IDoStuff" /> <endpoint address="net.tcp://localhost:8001/mex" binding="mexTcpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="mex"> <serviceMetadata/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
以上是关于最简WCF服务器端配置文件的主要内容,如果未能解决你的问题,请参考以下文章