码迷,mamicode.com
首页 > Web开发 > 详细

WCFhttp_tcp 协议

时间:2014-12-05 16:49:56      阅读:272      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   os   sp   on   bs   ad   ef   

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>

WCFhttp_tcp 协议

标签:http   io   ar   os   sp   on   bs   ad   ef   

原文地址:http://www.cnblogs.com/fengzhengfly/p/4146877.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!