天津投入产出系统后端
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.
 
 
 
 
 
 

70 lines
3.3 KiB

<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="ServerAddressIP" value="net.tcp://127.0.0.1:4444/OpcService"/>
<!--<add key="OPCServerIP" value="10.111.226.150" />-->
<add key="OPCServerIP" value="127.0.0.1" />
<add key="OPCServerName" value="Kepware.KEPServerEX.V5" />
<!--<add key="OPCServerName" value="kepware.KEPServerEX.V5" />-->
<add key="PRODUCELINE" value="VW331_IP" />
</appSettings>
<connectionStrings>
<add name="maindb" connectionString="Data Source=YANYG-PC\YANYG;Initial Catalog=ADIENT_QD_MES;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="OpcServerHost.OpcService" behaviorConfiguration="OpcServerHost.OpcServiceBehavior">
<!--定义终节点-->
<!--binding 绑定类型,NetTcpBinding、WSDualHttpBinding、WSHttpBindingBase、BasicHttpBinding、NetNamedPipeBinding、NetPeerTcpBinding、MsmqBindingBase、NetPeerTcpBinding、WebHttpBinding、MailBindingBase、CustomBinding-->
<!--DuplexBinding 双工-->
<!--使用契约:<命名空间>.<接口名称>-->
<endpoint address="" binding="netTcpBinding" bindingConfiguration="DuplexBinding" contract="OpcServerHost.IOpcService"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="OpcServerHost.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>