天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
3.8 KiB

<?xml version="1.0"?>
<configuration>
<appSettings>
<!--<add key="ServerAddressIP" value="net.tcp://10.122.210.138:4444/OpcService"/>-->
<add key="ServerAddressIP" value="net.tcp://192.168.0.106:4444/OpcService"/>
<!--<add key="OPCServerIP" value="10.111.226.150" />-->
<add key="OPCServerIP" value="127.0.0.1" />
<add key="OPCServerName" value="Kepware.KEPServerEX.V4" />
<!--<add key="OPCServerName" value="kepware.KEPServerEX.V5" />-->
<add key="ProcessType" value="10.114.48.210" />
</appSettings>
<connectionStrings>
<!--主数据库连接-->
<add name="maindb" connectionString="Data Source=192.168.0.133\SQL2008R2;Initial Catalog=B9DB;User Id=B9_se;Password=qm;" providerName="System.Data.SqlClient"/>
<!--<add name="maindb" connectionString="Data Source=10.114.48.123;Initial Catalog=AUDIB9MES;User Id=b9mes;Password=MESmes123;" providerName="System.Data.SqlClient"/>-->
<!--<add name="maindb" connectionString="Data Source=YANYG-PC\YANYG;Initial Catalog=B9DB133;User Id=sa;Password=db2012;" providerName="System.Data.SqlClient"/>-->
</connectionStrings>
<system.serviceModel>
<client>
<endpoint address="http://localhost:8938/OpcService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IOpcService" contract="WebServiceForOpc.IOpcService" name="BasicHttpBinding_IOpcService"/>
</client>
<services>
<!--behaviorConfiguration的名称需要和behavior的name保持一致-->
<service name="OpcProcessWinService.OpcService" behaviorConfiguration="OpcProcessWinService.OpcServiceBehavior">
<!--定义终节点-->
<!--binding 绑定类型,NetTcpBinding、WSDualHttpBinding、WSHttpBindingBase、BasicHttpBinding、NetNamedPipeBinding、NetPeerTcpBinding、MsmqBindingBase、NetPeerTcpBinding、WebHttpBinding、MailBindingBase、CustomBinding-->
<!--DuplexBinding 双工-->
<!--使用契约:<命名空间>.<接口名称>-->
<endpoint address="" binding="netTcpBinding" bindingConfiguration="DuplexBinding" contract="OpcProcessWinService.IOpcService"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="OpcProcessWinService.OpcServiceBehavior">
<!--会话最大数量-->
<serviceThrottling maxConcurrentSessions="10000"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IOpcService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="9097152" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
</binding>
</basicHttpBinding>
<netTcpBinding>
<binding name="DuplexBinding" closeTimeout="00:10:00" openTimeout="00:10:00"
receiveTimeout="24:00:00" sendTimeout="00:00:10" >
<reliableSession enabled="true" inactivityTimeout="01:00:00" />
<security mode="None" />
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>