ldj/WcfService1/Web.config

108 lines
4.7 KiB
Plaintext
Raw Normal View History

2023-05-23 16:13:17 +08:00
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
2023-09-04 22:41:19 +08:00
2023-05-23 16:13:17 +08:00
<add key="SqlconnWMS" value="Data Source=localhost;Initial Catalog=wmsuzhou2;Integrated Security=True"/>
<add key="SqlconnPlatform" value="Data Source=localhost;Initial Catalog=deiniuPlatform;Integrated Security=True"/>
<add key="SqlconnWms_erp" value="Data Source=localhost;Initial Catalog=custErp_suzou2;Integrated Security=True"/>
2023-09-04 22:41:19 +08:00
2023-05-23 16:13:17 +08:00
2023-09-04 22:41:19 +08:00
<!--
<add key="SqlconnWMS" value="Data Source=175.24.179.109;Initial Catalog=wmsuzhou2;Persist Security Info=True;User ID=sa; Password=Es@cn09!;Pooling=true;Max Pool Size = 300; Min Pool Size=0; Connection Lifetime = 10;packet size=1000 " />
<add key="SqlconnPlatform" value="Data Source=175.24.179.109;Initial Catalog=deiniuPlatform;Persist Security Info=True;User ID=sa; Password=Es@cn09!;Pooling=true;Max Pool Size = 300; Min Pool Size=0; Connection Lifetime = 10;packet size=1000 " />
<add key="SqlconnWms_erp" value="Data Source=175.24.179.109;Initial Catalog=custErp_suzou2;Persist Security Info=True;User ID=sa; Password=Es@cn09!;Pooling=true;Max Pool Size = 300; Min Pool Size=0; Connection Lifetime = 10;packet size=1000 " />
-->
<add key="ClientSettingsProvider.ServiceUri" value="" />
2023-05-23 16:13:17 +08:00
<add key="ConStringEncrypt" value="false" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
2023-09-04 22:41:19 +08:00
<httpRuntime maxRequestLength="10485760" />
2023-05-23 16:13:17 +08:00
</system.web>
<system.serviceModel>
<services>
<service name="DeiNiu.Wcf.Android" behaviorConfiguration="serviceBehavior">
2023-09-04 22:41:19 +08:00
<endpoint address="" binding="webHttpBinding" bindingConfiguration="myBinding" behaviorConfiguration="web"
2023-05-23 16:13:17 +08:00
contract="DeiNiu.Wcf.IAndroid"/>
</service>
</services>
<extensions>
<behaviorExtensions>
<add name="AuthenticationBehavior" type="WcfServiceAuthentication.AuthenticationBehaviorExtension, WcfServiceAuthentication" />
</behaviorExtensions>
</extensions>
<bindings>
2023-09-04 22:41:19 +08:00
<webHttpBinding>
<binding name="myBinding" closeTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" transferMode="Streamed" >
<readerQuotas maxDepth="64" maxArrayLength="2147483647" maxStringContentLength="2147483647"/>
</binding>
</webHttpBinding>
2023-05-23 16:13:17 +08:00
<basicHttpBinding>
<binding closeTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"/>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehavior">
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<!-- 开发调试引用服务时不需要权限拦截-->
2023-09-04 22:41:19 +08:00
<!--<AuthenticationBehavior/> -->
2023-05-23 16:13:17 +08:00
</behavior>
<behavior name="serviceBehaviorNoAuthor">
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
<behavior>
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<!-- 开发调试引用服务时不需要权限拦截
<AuthenticationBehavior/> -->
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp helpEnabled="true" />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
2023-09-04 22:41:19 +08:00
<security>
<requestFiltering>
<!-- 10 MB in bytes -->
<requestLimits maxAllowedContentLength="10485760" />
</requestFiltering>
</security>
2023-05-23 16:13:17 +08:00
</system.webServer>
</configuration>