WCF NetTcpBinding z mex

Usiłuję opublikować usługę wcf przy użyciu nettcpbinding. Chcę opublikować metadane, używając? Wsdl. Dodałem następujący wiersz do pliku konfiguracyjnego:

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

ale nie widzę kodu WSDL w mojej przeglądarce. co zrobiłem źle? Dzięki.

Edytuj: Oto odpowiednia część mojego pliku konfiguracyjnego:

<system.serviceModel>
   <services>
<service name="wcfcheck.service1" behaviorConfiguration="wcfcheck.Service1Behavior">
       <endpoint address="" binding="netTcpBinding" contract="wcfcheck.Iservice1"/>
       <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
   </services>
<behaviors>
<serviceBehaviors>
  <behavior name="wcfcheck.Service1Behavior">
    <serviceMetadata httpGetEnabled="true" httpGetUrl=""/>
    <serviceDebug includeExceptionDetailInFaults="true"/>
  </behavior>
</serviceBehaviors>

Być może nie mam dostępu do właściwego adresu URL. Próbowałem obuhttp: // localhost: 51159 / Service1.svc? wsdl ihttp: // localhost: 51159 / Service1.svc / mex? wsdli bez „? wsdl”.

questionAnswers(3)

yourAnswerToTheQuestion