Web.config 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="dongke.batchingHosting" type="Dongke.IBOSS.PRD.WCF.Services.ConfigSetting.BatchingHostingSettings, WCF.Services"/>
  5. </configSections>
  6. <runtime>
  7. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  8. <probing privatePath="orcl_10_11_x32"/>
  9. </assemblyBinding>
  10. </runtime>
  11. <system.serviceModel>
  12. <extensions>
  13. <behaviorExtensions>
  14. <add name="ServiceInterpector" type="Dongke.IBOSS.PRD.WCF.Services.ServiceInterpector.MyServiceBehavior, WCF.Services"/>
  15. </behaviorExtensions>
  16. </extensions>
  17. <behaviors>
  18. <endpointBehaviors>
  19. <!--xuwei add 2019-10-22 允许javascript调用接口-->
  20. <behavior name="AjaxWCFServiceAspNetAjaxBehavior">
  21. <enableWebScript />
  22. </behavior>
  23. <!--xuwei end-->
  24. <behavior name="endpointBehavior_DKIBOSSPRDService">
  25. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  26. </behavior>
  27. <behavior name="endpointBehavior_DKIBOSSPRD_PDAService">
  28. <enableWebScript/>
  29. <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
  30. </behavior>
  31. </endpointBehaviors>
  32. <serviceBehaviors>
  33. <!--xuwei add 2019-10-22-->
  34. <behavior name="">
  35. <serviceMetadata httpGetEnabled="true" />
  36. <serviceDebug includeExceptionDetailInFaults="true" />
  37. </behavior>
  38. <!--xuwei end-->
  39. <behavior name="serviceBehavior_DKIBOSSPRDService">
  40. <!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false 并删除上面的元数据终结点 -->
  41. <serviceMetadata httpGetEnabled="true"/>
  42. <!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。在部署前设置为 false 以避免泄漏异常信息-->
  43. <serviceDebug includeExceptionDetailInFaults="true"/>
  44. <!-- maxConcurrentCalls:并发消息数,默认16 -->
  45. <!-- maxConcurrentInstances:并发实例数,默认26 -->
  46. <!-- maxConcurrentSessions:并发会话数,默认10 -->
  47. <serviceThrottling maxConcurrentCalls="2147483647" maxConcurrentInstances="2147483647" maxConcurrentSessions="2147483647"/>
  48. <!--<ServiceInterpector />-->
  49. </behavior>
  50. </serviceBehaviors>
  51. </behaviors>
  52. <bindings>
  53. <wsHttpBinding>
  54. <binding name="wsHttpBinding_DKIBOSSPRDService" closeTimeout="20:30:00" openTimeout="20:30:00" receiveTimeout="20:30:00" sendTimeout="20:30:00"
  55. bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647"
  56. maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
  57. <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"
  58. maxNameTableCharCount="2147483647"/>
  59. <reliableSession ordered="true" inactivityTimeout="20:30:00" enabled="false"/>
  60. <security mode="None">
  61. <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
  62. <message clientCredentialType="Windows" negotiateServiceCredential="true"/>
  63. </security>
  64. </binding>
  65. </wsHttpBinding>
  66. <webHttpBinding>
  67. <!--测试上传图片添加-->
  68. <binding name="webHttpBinding_DKIBOSSPRDService" closeTimeout="01:30:00" openTimeout="01:30:00" receiveTimeout="01:30:00" sendTimeout="01:30:00"
  69. maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed"
  70. crossDomainScriptAccessEnabled="true">
  71. <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647"
  72. maxNameTableCharCount="2147483647"/>
  73. <security mode="None"/>
  74. </binding>
  75. <!--测试上传图片添加结束-->
  76. </webHttpBinding>
  77. <customBinding>
  78. <binding name="ZPPFM010_BIND" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="20:00:00" sendTimeout="20:00:00">
  79. <mtomMessageEncoding messageVersion="Soap11WSAddressing10" maxBufferSize="2147483647"/>
  80. <httpTransport authenticationScheme="Basic" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"/>
  81. </binding>
  82. <binding name="ZPPFM010_BIND_soap12" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="20:00:00" sendTimeout="20:00:00">
  83. <mtomMessageEncoding messageVersion="Soap12" maxBufferSize="2147483647"/>
  84. <httpTransport authenticationScheme="Basic" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"/>
  85. </binding>
  86. <binding name="ZPPFM008_BIND" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="20:00:00" sendTimeout="20:00:00">
  87. <mtomMessageEncoding messageVersion="Soap11WSAddressing10" maxBufferSize="2147483647"/>
  88. <httpTransport authenticationScheme="Basic" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"/>
  89. </binding>
  90. <binding name="ZPPFM008_BIND_soap12" closeTimeout="00:05:00" openTimeout="00:05:00" receiveTimeout="20:00:00" sendTimeout="20:00:00">
  91. <mtomMessageEncoding messageVersion="Soap12" maxBufferSize="2147483647"/>
  92. <httpTransport authenticationScheme="Basic" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647" maxBufferSize="2147483647"/>
  93. </binding>
  94. </customBinding>
  95. </bindings>
  96. <services>
  97. <!--xuwei add 2019-10-22-->
  98. <service name="AjaxWCFService">
  99. <endpoint address="" behaviorConfiguration="AjaxWCFServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="AjaxWCFService" />
  100. </service>
  101. <!--xuwei end-->
  102. <!-- PDA模块服务 -->
  103. <service name="PDAModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  104. <endpoint address="" binding="webHttpBinding" bindingConfiguration="webHttpBinding_DKIBOSSPRDService"
  105. behaviorConfiguration="endpointBehavior_DKIBOSSPRD_PDAService" contract="PDAModuleService.IPDAModule"/>
  106. </service>
  107. <!-- 系统登录相关服务 -->
  108. <service name="DKIBOSSPRDService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  109. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  110. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="DKIBOSSPRDService.IDKIBOSSPRD"/>
  111. </service>
  112. <!-- 共通处理服务 -->
  113. <service name="CommonModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  114. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  115. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="CommonModuleService.ICommonModule"/>
  116. </service>
  117. <!-- 系统管理服务 -->
  118. <service name="SystemModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  119. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  120. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="SystemModuleService.ISystemModule"/>
  121. </service>
  122. <!-- 人力资源服务 -->
  123. <service name="HRModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  124. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  125. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="HRModuleService.IHRModule"/>
  126. </service>
  127. <!-- 生产配置服务 -->
  128. <service name="PCModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  129. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  130. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PCModuleService.IPCModule"/>
  131. </service>
  132. <!-- 生产管理服务 -->
  133. <service name="PMModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  134. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  135. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PMModuleService.IPMModule"/>
  136. </service>
  137. <!-- 策略管理服务 -->
  138. <service name="TATModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  139. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  140. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="TATModuleService.ITATModule"/>
  141. </service>
  142. <!-- 报表体系服务 -->
  143. <service name="ReportModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  144. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  145. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="ReportModuleService.IReportModule"/>
  146. </service>
  147. <!-- WCF测试服务 -->
  148. <service name="WCFTestService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  149. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  150. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="WCFTestService.IWCFTest"/>
  151. </service>
  152. <!-- 共通处理服务 -->
  153. <service name="CMNModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  154. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  155. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="CMNModuleService.ICMNModule"/>
  156. </service>
  157. <!-- 生产管理服务 -->
  158. <service name="PMModuleServiceNew" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  159. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  160. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PMModuleServiceNew.IPMModuleNew"/>
  161. </service>
  162. <!-- 生产配置服务 -->
  163. <service name="PCModuleServiceNew" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  164. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  165. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PCModuleServiceNew.IPCModuleNew"/>
  166. </service>
  167. <!-- 生产计划服务 -->
  168. <service name="PPModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  169. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  170. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PPModuleService.IPPModule"/>
  171. </service>
  172. <!-- 工资核算管理服务 -->
  173. <service name="PAMModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  174. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  175. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PAMModuleService.IPAMModule"/>
  176. </service>
  177. <!-- 公开查询服务 -->
  178. <service name="PublicModuleService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  179. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  180. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="PublicModuleService.IPublicModule"/>
  181. </service>
  182. <!-- 智能设备数据服务 -->
  183. <service name="SmartDeviceService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  184. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  185. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="SmartDeviceService.ISmartDevice"/>
  186. </service>
  187. <!-- SAP数据接口 -->
  188. <service name="SAPDataService" behaviorConfiguration="serviceBehavior_DKIBOSSPRDService">
  189. <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_DKIBOSSPRDService"
  190. behaviorConfiguration="endpointBehavior_DKIBOSSPRDService" contract="SAPDataService.ISAPData"/>
  191. </service>
  192. </services>
  193. <client>
  194. <endpoint address="http://S4PRDAPP1.HEGII.COM:8080/sap/bc/srt/rfc/sap/zppfm010/800/zppfm010/zppfm010_bind" binding="customBinding"
  195. bindingConfiguration="ZPPFM010_BIND" contract="HGSAPDK_ZPPFM010.ZPPFM010" name="ZPPFM010_BIND"/>
  196. <endpoint address="http://S4PRDAPP1.HEGII.COM:8080/sap/bc/srt/rfc/sap/zppfm010/800/zppfm010/zppfm010_bind" binding="customBinding"
  197. bindingConfiguration="ZPPFM010_BIND_soap12" contract="HGSAPDK_ZPPFM010.ZPPFM010" name="ZPPFM010_BIND_soap12"/>
  198. <endpoint address="http://S4PRDAPP1.HEGII.COM:8080/sap/bc/srt/rfc/sap/zppfm008/800/zppfm008/zppfm008_bind" binding="customBinding"
  199. bindingConfiguration="ZPPFM008_BIND" contract="HGSAPDK_ZPPFM008.ZPPFM008" name="ZPPFM008_BIND"/>
  200. <endpoint address="http://S4PRDAPP1.HEGII.COM:8080/sap/bc/srt/rfc/sap/zppfm008/800/zppfm008/zppfm008_bind" binding="customBinding"
  201. bindingConfiguration="ZPPFM008_BIND_soap12" contract="HGSAPDK_ZPPFM008.ZPPFM008" name="ZPPFM008_BIND_soap12"/>
  202. </client>
  203. <!--aspNetCompatibilityEnabled属性设为True,让WCF启用ASP.NET管线(通俗的说就是启用Web模式下的各种设置)-->
  204. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true">
  205. <serviceActivations>
  206. <!--虚拟服务的映射文件,这样就不用手动创建.svc映射文件了-->
  207. <add service="Dongke.IBOSS.PRD.WCF.Services.CMNModuleService" relativeAddress="DKService/CMNModuleService.svc"/>
  208. <add service="Dongke.IBOSS.PRD.WCF.Services.CommonModuleService" relativeAddress="DKService/CommonModuleService.svc"/>
  209. <add service="Dongke.IBOSS.PRD.WCF.Services.DKIBOSSPRDService" relativeAddress="DKService/DKIBOSSPRDService.svc"/>
  210. <add service="Dongke.IBOSS.PRD.WCF.Services.HRModuleService" relativeAddress="DKService/HRModuleService.svc"/>
  211. <add service="Dongke.IBOSS.PRD.WCF.Services.PAMModuleService" relativeAddress="DKService/PAMModuleService.svc"/>
  212. <add service="Dongke.IBOSS.PRD.WCF.Services.PPModuleService" relativeAddress="DKService/PPModuleService.svc"/>
  213. <add service="Dongke.IBOSS.PRD.WCF.Services.PCModuleService" relativeAddress="DKService/PCModuleService.svc"/>
  214. <add service="Dongke.IBOSS.PRD.WCF.Services.PCModuleServiceNew" relativeAddress="DKService/PCModuleServiceNew.svc"/>
  215. <add service="Dongke.IBOSS.PRD.WCF.Services.PDAModuleService" relativeAddress="DKService/PDAModuleService.svc"/>
  216. <add service="Dongke.IBOSS.PRD.WCF.Services.PMModuleService" relativeAddress="DKService/PMModuleService.svc"/>
  217. <add service="Dongke.IBOSS.PRD.WCF.Services.PMModuleServiceNew" relativeAddress="DKService/PMModuleServiceNew.svc"/>
  218. <add service="Dongke.IBOSS.PRD.WCF.Services.PublicModuleService" relativeAddress="DKService/PublicModuleService.svc"/>
  219. <add service="Dongke.IBOSS.PRD.WCF.Services.ReportModuleService" relativeAddress="DKService/ReportModuleService.svc"/>
  220. <add service="Dongke.IBOSS.PRD.WCF.Services.SystemModuleService" relativeAddress="DKService/SystemModuleService.svc"/>
  221. <add service="Dongke.IBOSS.PRD.WCF.Services.TATModuleService" relativeAddress="DKService/TATModuleService.svc"/>
  222. <add service="Dongke.IBOSS.PRD.WCF.Services.WCFTestService" relativeAddress="DKService/WCFTestService.svc"/>
  223. <add service="Dongke.IBOSS.PRD.WCF.Services.SmartDeviceService" relativeAddress="DKService/SmartDeviceService.svc"/>
  224. <add service="Dongke.IBOSS.PRD.WCF.Services.SAPDataService" relativeAddress="DKService/SAPDataService.svc"/>
  225. </serviceActivations>
  226. </serviceHostingEnvironment>
  227. </system.serviceModel>
  228. <dongke.batchingHosting>
  229. <add type="Dongke.IBOSS.PRD.WCF.Services.PDAModuleService, WCF.Services"/>
  230. <add type="Dongke.IBOSS.PRD.WCF.Services.DKIBOSSPRDService, WCF.Services"/>
  231. <add type="Dongke.IBOSS.PRD.WCF.Services.CommonModuleService, WCF.Services"/>
  232. <add type="Dongke.IBOSS.PRD.WCF.Services.SystemModuleService, WCF.Services"/>
  233. <add type="Dongke.IBOSS.PRD.WCF.Services.HRModuleService, WCF.Services"/>
  234. <add type="Dongke.IBOSS.PRD.WCF.Services.PCModuleService, WCF.Services"/>
  235. <add type="Dongke.IBOSS.PRD.WCF.Services.PPModuleService, WCF.Services"/>
  236. <add type="Dongke.IBOSS.PRD.WCF.Services.PMModuleService, WCF.Services"/>
  237. <add type="Dongke.IBOSS.PRD.WCF.Services.TATModuleService, WCF.Services"/>
  238. <add type="Dongke.IBOSS.PRD.WCF.Services.ReportModuleService, WCF.Services"/>
  239. <add type="Dongke.IBOSS.PRD.WCF.Services.WCFTestService, WCF.Services"/>
  240. <add type="Dongke.IBOSS.PRD.WCF.Services.CMNModuleService, WCF.Services"/>
  241. <add type="Dongke.IBOSS.PRD.WCF.Services.PMModuleServiceNew, WCF.Services"/>
  242. <add type="Dongke.IBOSS.PRD.WCF.Services.PCModuleServiceNew, WCF.Services"/>
  243. <add type="Dongke.IBOSS.PRD.WCF.Services.PAMModuleService, WCF.Services"/>
  244. <add type="Dongke.IBOSS.PRD.WCF.Services.PublicModuleService, WCF.Services"/>
  245. <add type="Dongke.IBOSS.PRD.WCF.Services.SmartDeviceService, WCF.Services"/>
  246. <add type="Dongke.IBOSS.PRD.WCF.Services.SAPDataService, WCF.Services"/>
  247. </dongke.batchingHosting>
  248. <system.web>
  249. <customErrors mode="Off"/>
  250. <compilation/>
  251. </system.web>
  252. </configuration>
  253. <!--ProjectGuid: 518ADA48-93B2-4433-9E0D-7124812658FC-->