0

2 つのエンドポイントを持つ 1 つのサービスがあります。1 つのエンドポイントは wsdual バインディング用で、別のエンドポイントは tcp バインディング用です。wcfsvchost.exeでwcfサービスを開始すると

WcfSvcHost.exe /service:"C:
\Users\TRIDIP\Documents\Visual Studio 2010\Projects\BBAChatService\BBAChatService\bin
\BBAChatService.dll" /config:"C:\Users\TRIDIP\documents\visual studio 2010\Projects
\BBAChatService\BBAChatService\Web.config"

その後、サービスが開始されましたが、mex エンドポイントが 1 つしか表示されません。web.config ファイルで 2 つのエンドポイントが宣言されているため、2 つの mex エンドポイントが表示されるはずです。ここに私の設定ファイルのエントリがあります。

<service name="BBAChatService.ChatService" behaviorConfiguration="BBAChatService.ChatServiceBehavior" >
        <host>
          <baseAddresses>
            <add baseAddress ="http://localhost:8732/ChatService.svc/"/>
            <add baseAddress ="net.tcp://localhost:7998/ChatService/"/>
          </baseAddresses>
        </host>

        <endpoint name="dual_bind"
                  address="dual"
                  binding="wsDualHttpBinding" 
                  bindingConfiguration="WSDualHttpBinding_IChatService" 
                  contract="BBAChatService.IChatService">
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

        <endpoint name="tcp_bind"
              address="tcp"
              binding="netTcpBinding"
              bindingConfiguration="tcpBinding"
              contract="BBAChatService.IChatService">
        </endpoint>

        <endpoint address="net.tcp://localhost:7996/ChatService/mex"
                          binding="mexTcpBinding"
                          contract="IMetadataExchange"/>


      </service>

設定ファイルに欠けているものはありますか。その結果、wcfsvchost はサービスの 2 つの異なるエンドポイントを表示するので、何をする必要があるか教えてください。ありがとう

4

0 に答える 0