2
我需要知道我需要做什么更改以使web.config显示在WCF Test Client中。我期待看到一个调用ssl,https协议的web.config。我希望应用程序在没有元数据错误的情况下显示在WCF Test Client中。顺便说一句,我尝试了mexHttpsBinding并摆脱httpGetEnabled =“False”。都没有工作。我也尝试创建一个https端点 - 没有喜悦。https在WCF测试客户端使用basicHttpBinding绑定
<compilation debug="true" targetFramework="4.0" />
<services>
<service name="WcfService1_ssl.Service1" behaviorConfiguration="OhBehave">
<endpoint address="" binding="basicHttpBinding" contract="WcfService1_ssl.IService1" bindingConfiguration="secureBinding" />
<!-- VERIFY: Verify address="mex" section is commented or deleted to avoid any mexHttpBinding. -->
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="OhBehave">
<dataContractSerializer maxItemsInObjectGraph="2147483646" />
<serviceMetadata httpGetEnabled="False" httpsGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<clear />
<binding name="secureBinding" closeTimeout="10:00:00" openTimeout="10:00:00" receiveTimeout="10:10:00" sendTimeout="10:10:00" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text">
<readerQuotas maxStringContentLength="2147483647" />
<security mode="Transport">
<transport clientCredentialType="None"></transport>
</security>
</binding>
</basicHttpBinding>
</bindings>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
<modules runAllManagedModulesForAllRequests="true"/>