我试图使WCF服务帮助页面中我的WCF服务,但没有尝试的工作,没有缴费的帮助页面与服务的方法下链接的描述<.....{servicename}.svc/help>
如何启用WCF帮助页面与basicHttpBinding的(SOAP,不是REST)
我试过任何提示,我设法找到,没有结果。
有可能在所有启用wcf服务的自动帮助页basicHttpBinding?
我的WCF服务在Asp.net应用托管
这里是we.config我的WCF配置部分:
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="EcoscadaApi">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" httpGetUrl="" />
<serviceDebug includeExceptionDetailInFaults="true" httpHelpPageEnabled="true" httpsHelpPageEnabled="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="EndpointBehavior">
<webHttp helpEnabled="true"/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_HvacControlService" sendTimeout="00:05:00" />
<binding name="ecoWcfBinding" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" >
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="EcoSCADA.Web.Services.Wcf.BuildingComponentService" behaviorConfiguration="EcoscadaApi">
<host>
<baseAddresses>
<add baseAddress="http://localhost/Services/wcf/BuildingComponentService" />
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="ecoWcfBinding" contract="EcoSCADA.Web.Services.Wcf.IBuildingComponentService" />
<endpoint address="mex" binding="mexHttpBinding" name="Metadata" contract="IMetadataExchange" />
</service>
任何言论/提示将不胜感激。
是的,我试过了这,但我仍然得到空白页下的链接..... {servicename} .svc /帮助 – robsonwk 2014-10-10 08:56:11
挣扎了一下第二篇文章后,终于出来了!非常感谢BCdotNET! – robsonwk 2014-10-10 12:27:08
@robsonwk你可以让我知道你做了什么来得到这个工作吗? – 2016-04-14 03:03:44