WCFhttp_tcp 协议

1、 <add baseAddress="http://localhost:8000/"/>     <!--<add baseAddress="net.tcp://localhost:8006/"/>-->

2、 <endpoint address="" binding="wsHttpBinding" bindingConfiguration="LargeDataTransferServicesBinding" contract="WcfService.IService"></endpoint>     中 binding="wsHttpBinding"

3、 <behaviors>       <serviceBehaviors>         <behavior name="CalculatorServiceBehavior">           <serviceMetadata httpGetEnabled="True"/>           <serviceDebug includeExceptionDetailInFaults="false"/>         </behavior>       </serviceBehaviors>     </behaviors>

   中 httpGetEnabled="True"    includeExceptionDetailInFaults="false" 不发错误信息

4、<bindings>中     <wsHttpBinding>         <binding name="LargeDataTransferServicesBinding"            maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" sendTimeout="00:20:00" useDefaultWebProxy="false">           <readerQuotas maxStringContentLength="12000000" maxArrayLength="12000000"/>           <security mode="None"/>         </binding>       </wsHttpBinding>

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。