ldj/WcfService1/Web.config

79 lines
4.0 KiB
Plaintext
Raw Normal View History

2023-12-03 22:13:49 +08:00
<?xml version="1.0"?>
2023-05-23 16:13:17 +08:00
<configuration>
<appSettings>
<add key="SqlconnWMS" value="Data Source=localhost;Initial Catalog=wmsldj;Integrated Security=True"/>
2023-05-23 16:13:17 +08:00
<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-12-03 22:13:49 +08:00
<add key="ClientSettingsProvider.ServiceUri" value=""/>
<add key="ConStringEncrypt" value="false"/>
</appSettings>
2023-05-23 16:13:17 +08:00
<system.web>
2023-12-03 22:13:49 +08:00
<compilation targetFramework="4.0" debug="true"/>
<httpRuntime maxRequestLength="10485760"/>
2023-05-23 16:13:17 +08:00
</system.web>
<system.serviceModel>
2023-12-03 22:13:49 +08:00
<services>
<service name="DeiNiu.Wcf.Android" behaviorConfiguration="serviceBehavior">
<endpoint address="" binding="webHttpBinding" bindingConfiguration="myBinding" behaviorConfiguration="web" contract="DeiNiu.Wcf.IAndroid"/>
</service>
</services>
2023-05-23 16:13:17 +08:00
<extensions>
<behaviorExtensions>
2023-12-03 22:13:49 +08:00
<add name="AuthenticationBehavior" type="WcfServiceAuthentication.AuthenticationBehaviorExtension, WcfServiceAuthentication"/>
2023-05-23 16:13:17 +08:00
</behaviorExtensions>
</extensions>
<bindings>
2023-12-03 22:13:49 +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>
2023-12-03 22:13:49 +08:00
<binding closeTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"/>
2023-05-23 16:13:17 +08:00
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
2023-12-03 22:13:49 +08:00
<behavior name="serviceBehavior">
2023-05-23 16:13:17 +08:00
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
2023-12-03 22:13:49 +08:00
<serviceDebug includeExceptionDetailInFaults="false"/>
2023-05-23 16:13:17 +08:00
<!-- 开发调试引用服务时不需要权限拦截
2024-05-24 19:11:48 +08:00
<AuthenticationBehavior/>-->
2023-12-03 22:13:49 +08:00
</behavior>
<behavior name="serviceBehaviorNoAuthor">
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="false"/>
2023-05-23 16:13:17 +08:00
</behavior>
2023-12-03 22:13:49 +08:00
<behavior>
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
<serviceMetadata httpGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<!-- 开发调试引用服务时不需要权限拦截
<AuthenticationBehavior/> -->
</behavior>
2023-05-23 16:13:17 +08:00
</serviceBehaviors>
2023-12-03 22:13:49 +08:00
<endpointBehaviors>
<behavior name="web">
<webHttp helpEnabled="true"/>
</behavior>
</endpointBehaviors>
2023-05-23 16:13:17 +08:00
</behaviors>
2023-12-03 22:13:49 +08:00
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0"/>
2023-05-23 16:13:17 +08:00
</system.serviceModel>
2023-12-03 22:13:49 +08:00
<system.webServer>
2023-05-23 16:13:17 +08:00
<modules runAllManagedModulesForAllRequests="true"/>
2023-12-03 22:13:49 +08:00
<security>
<requestFiltering>
<!-- 10 MB in bytes -->
<requestLimits maxAllowedContentLength="10485760"/>
</requestFiltering>
</security>
2023-05-23 16:13:17 +08:00
</system.webServer>
</configuration>
2023-12-03 22:13:49 +08:00
<!--ProjectGuid: BE0282B1-5A40-45A0-9556-B7C83271C393-->