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.
55 lines
2.2 KiB
55 lines
2.2 KiB
<?xml version="1.0"?>
|
|
<configuration>
|
|
<connectionStrings/>
|
|
<appSettings>
|
|
<!--任务调度服务凭据-->
|
|
<add key="ServiceCredentialID" value="d7911036-d36f-460f-a052-979628322df3"/>
|
|
<!--服务中心调用凭据-->
|
|
<add key="ServiceCredential" value="123456"/>
|
|
<add key="OPCServerIP" value="10.111.226.150"/>
|
|
<add key="OPCServerName" value="Kepware.KEPServerEX.V4"/>
|
|
</appSettings>
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.0"/>
|
|
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
|
|
</system.web>
|
|
<system.serviceModel>
|
|
<services>
|
|
<service name="OpcHost.PLCService" behaviorConfiguration="OpcHost.PLCServiceBehavior">
|
|
<!--定义终节点-->
|
|
<!--binding 绑定类型,NetTcpBinding、WSDualHttpBinding、WSHttpBindingBase、BasicHttpBinding、NetNamedPipeBinding、NetPeerTcpBinding、MsmqBindingBase、NetPeerTcpBinding、WebHttpBinding、MailBindingBase、CustomBinding-->
|
|
<!--DuplexBinding 双工-->
|
|
<!--使用契约:<命名空间>.<接口名称>-->
|
|
<endpoint address="net.tcp://192.168.0.106:9256/PLCService" binding="netTcpBinding"
|
|
bindingConfiguration="DuplexBinding"
|
|
contract="OpcHost.IPLCService"/>
|
|
|
|
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
|
|
</service>
|
|
</services>
|
|
<bindings>
|
|
<netTcpBinding>
|
|
<!--双工,超时设置-->
|
|
<binding name="DuplexBinding" sendTimeout="00:00:01">
|
|
<reliableSession enabled="true"/>
|
|
<security mode="None"/>
|
|
</binding>
|
|
</netTcpBinding>
|
|
</bindings>
|
|
<client/>
|
|
<behaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="OpcHost.PLCServiceBehavior">
|
|
<serviceThrottling maxConcurrentSessions="10000"/>
|
|
<serviceDebug includeExceptionDetailInFaults="True"/>
|
|
<serviceMetadata />
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
|
|
</system.serviceModel>
|
|
<system.webServer>
|
|
<directoryBrowse enabled="true"/>
|
|
<!--<modules runAllManagedModulesForAllRequests="true"/>-->
|
|
</system.webServer>
|
|
</configuration>
|