深入探索WCF服务:测试、自定义客户端与业务逻辑层构建
一、WCF服务配置与测试基础
在开发WCF服务时,配置文件起着关键作用。以下是一段服务配置示例:
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<!-- Metadata Endpoints -->
<!-- The Metadata Exchange endpoint is used by the service
to describe itself to clients. -->
<!-- This endpoint does not use a secure binding and should be
secured or removed before deployment -->
<endpoint address="mex" binding="mexHttpBinding" contract=
"IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyWCFServices.RealNorthwindService.
ProductServiceBehavior">
<!-- To avoid disclosing metadata infor
超级会员免费看
订阅专栏 解锁全文
73

被折叠的 条评论
为什么被折叠?



