为什么我看不到WSDL

时间:2015-01-23 17:20:39

标签: c# wcf

我创建了简单的WCF服务,并将其配置为如下所示

<configuration>
  <system.serviceModel>
    <services>
      <service name="CcmDmzService.CcmWcfService" behaviorConfiguration="CCMServiceBehavior">
        <endpoint address="" binding="wsHttpBinding" contract="CcmDmzService.ICcmWcfService" 
                  bindingConfiguration="CcmDmzBindingConfig">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="https://localhost:8031/TestService" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="CCMServiceBehavior">
          <serviceMetadata httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <wsHttpBinding>
        <binding name="CcmDmzBindingConfig" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647"
          openTimeout="00:30:00"
          closeTimeout="00:30:00"
          receiveTimeout="05:00:00"
          sendTimeout="05:00:00">
          <security mode="TransportWithMessageCredential">
            <message clientCredentialType="UserName" />
            <transport clientCredentialType="None" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
  </system.serviceModel>
</configuration>

当我运行服务时,服务打开但我看不到WSDL(注册的基地址必须是HTTPS)

0 个答案:

没有答案