我正在尝试从我的客户端控制台应用程序访问服务器上的 WCF 服务以进行测试。我收到以下错误:
调用者未经服务验证
我正在使用wsHttpBinding
. 我不确定该服务需要什么样的身份验证?
<behaviors>
<serviceBehaviors>
<behavior name="MyTrakerService.MyTrakerServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
更新
如果我<endpoint "basicHttpBinding" ... />
在托管的 IIS 7.0、windows 2008 服务器上将绑定更改为(从 wsHttpBinding),它就可以工作