WCF配置,公网配置

<bindings>
<wsHttpBinding>
<binding name="httpconf">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="2147483647"/>
<reliableSession ordered="true" inactivityTimeout="03:00:00" enabled="false"/>
<security mode="None">
<transport clientCredentialType="Windows"/>
<message clientCredentialType="Windows"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="WcfServiceTest.DataServiceBehavior" name="WcfServiceTest.DataService">
<endpoint address="" binding="wsHttpBinding" contract="WcfServiceTest.IDataService" bindingConfiguration="httpconf" >
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>

posted on 2012-08-21 14:10  Cheney_Lee  阅读(133)  评论(0)    收藏  举报