0

以下の構成にバインディングを追加しました。

<services> 
  <service name="MyNamespace.Service.ServiceName.ServiceEndPoint"> 
    <endpoint address="http://localhost:8012/ServiceEndPoint" binding="webHttpBinding" contract="MyNamespace.Service.ServiceName.IServiceEndPoint" behaviorConfiguration="webHttp" name="ServiceName"/>

  </service> 
</services> 
<behaviors> 
  <endpointBehaviors> 
    <behavior name="webHttp"> 
      <webHttp/> 
    </behavior> 
  </endpointBehaviors> 
</behaviors>

エンドポイントを保護したいので、 binding="webHttpBinding" を追加しました。私が持っている対応する設定は次のとおりです。

<bindings> 
  <wsHttpBinding> 
    <binding name="ServiceName"> 
      <security mode="Transport"> 
        <transport clientCredentialType="Windows" /> 
      </security> 
    </binding> 
  </wsHttpBinding> 
</bindings>

しかし、これはエンドポイントを確保していないようです。Firefox でこれを試して、IE が自動的に認証されないことを確認し、firebug でヘッダーをチェックしました。

これを行うための正しい構成の方向に誰かが私を向けることができますか?

ありがとう、マット

4

2 に答える 2

0

設定し忘れbindingConfiguration

<endpoint address="http://localhost:8012/ServiceEndPoint" binding="webHttpBinding" contract="MyNamespace.Service.ServiceName.IServiceEndPoint" behaviorConfiguration="webHttp" name="ServiceNameEndpoint" bindingConfiguration="ServiceName"/>
于 2013-01-18T09:05:02.597 に答える
0

バインディングで を構成wsHttpBindingし、サービス エンドポイントで を指定しましたwebHttpBinding。エンドポイント バインディングを に設定する必要があると思いますwsHttpBinding

WCF Bindings のこのリンクを確認してください。

于 2013-01-18T09:44:14.860 に答える