だから私はサービスのエンドポイントとホストのベースアドレスが何であるか混乱している。すべての例で私はこれまで歩いてきましたが、必要なバインディングでエンドポイントを設定する方法について話していますが、通常はエンドポイントに移動できます。WCFサービスのエンドポイントとホストのベースアドレス
次の設定を使用して、ホストのベースアドレスを公開します。
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="HostService.EvalService">
<endpoint address="http://localhost:8080/basic"
binding="basicHttpBinding" contract="HostService.IEvalService" />
<endpoint address="http://localhost:8080/ws"
binding="wsHttpBinding" contract="HostService.IEvalService" />
<endpoint address="mex" binding="mexHttpBinding"
name="mex" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/EvalsService" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
誰かがこれを私に説明できますか?
まだエンドポイントにナビゲートできますか?現時点では私はできません –
ブラウザのエンドポイントにナビゲートすることはできませんが、エンドポイントはまだアクティブであり、クライアントは正常に接続できるはずです。 –
私は、MSがあなたの銃弾のいくつかを彼らの奇妙な文書に記載していない理由を知りません。 – PositiveGuy