テストのために、クライアント コンソール アプリケーションからサーバー上の 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>
更新IIS 7.0 でホストされている Windows 2008 サーバーで
バインディングを<endpoint "basicHttpBinding" ... />
(wsHttpBinding から)に変更すると機能します