【发布时间】:2012-11-29 04:36:59
【问题描述】:
假设我有一个托管在 IIS 中的 WCF 服务,端点中的地址可以为空吗? 我在WCF Tutorial.看到了一个例子
<system.serviceModel>
<services>
<service name="MathService"
behaviorConfiguration="MathServiceBehavior">
<endpoint address="" contract="IMathService"
binding="wsHttpBinding"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MathServiceBehavior">
<serviceMetadata httpGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
【问题讨论】:
标签: wcf iis web-config wcf-binding