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.

82 lines
5.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  5. <section name="BankOfCeylon.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  6. </sectionGroup>
  7. </configSections>
  8. <system.serviceModel>
  9. <bindings>
  10. <customBinding>
  11. <binding name="ServiceComPortBinding">
  12. <transactionFlow transactionProtocol="WSAtomicTransactionOctober2004" />
  13. <security defaultAlgorithmSuite="Basic128" authenticationMode="UserNameForCertificate" requireDerivedKeys="false" securityHeaderLayout="Strict" includeTimestamp="true" keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncrypt" messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10" requireSignatureConfirmation="false">
  14. <localClientSettings cacheCookies="true" detectReplays="true" replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="Infinite" replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00" sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true" timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
  15. <localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00" maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00" negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00" sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true" maxPendingSessions="128" maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
  16. </security>
  17. <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" messageVersion="Soap11WSAddressing10" writeEncoding="utf-8">
  18. <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  19. </textMessageEncoding>
  20. <httpsTransport maxReceivedMessageSize="2147483647" />
  21. </binding>
  22. <binding name="ServiceComPortBinding1">
  23. <transactionFlow transactionProtocol="WSAtomicTransactionOctober2004" />
  24. <!--The wsdl schema that was used to create this configuration file contained a 'RequireIssuerSerialReference' assertion for a X509Token. This can not be represented in configuration, you will need to programatically adjust the appropriate X509SecurityTokenParameters.X509KeyIdentifierClauseType to X509KeyIdentifierClauseType.IssuerSerial. The default of X509KeyIdentifierClauseType.Thumbprint will be used, which may cause interop issues.-->
  25. <security defaultAlgorithmSuite="Basic128" authenticationMode="UserNameForCertificate" requireDerivedKeys="false" includeTimestamp="true" messageProtectionOrder="SignBeforeEncrypt" messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10" requireSignatureConfirmation="false">
  26. <localClientSettings detectReplays="true" />
  27. <localServiceSettings detectReplays="true" />
  28. </security>
  29. <textMessageEncoding messageVersion="Soap11WSAddressing10" />
  30. <httpsTransport maxReceivedMessageSize="2147483647" />
  31. </binding>
  32. </customBinding>
  33. </bindings>
  34. <client>
  35. <endpoint address="https://www.combanksrv.com:7003/ServiceCom/ServiceCom" behaviorConfiguration="defaultProfile" binding="customBinding" bindingConfiguration="ServiceComPortBinding" contract="BOCServiceReference.ServiceCom" name="ServiceComPort">
  36. <identity>
  37. <dns value="combanksrv.com" />
  38. </identity>
  39. </endpoint>
  40. </client>
  41. <behaviors>
  42. <endpointBehaviors>
  43. <behavior name="defaultProfile">
  44. <clientCredentials>
  45. <serviceCertificate>
  46. <!-- path for client certificate-->
  47. <defaultCertificate findValue="www.combanksrv.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" />
  48. <authentication certificateValidationMode="None" />
  49. </serviceCertificate>
  50. </clientCredentials>
  51. </behavior>
  52. </endpointBehaviors>
  53. </behaviors>
  54. </system.serviceModel>
  55. <applicationSettings>
  56. <BankOfCeylon.Properties.Settings>
  57. <setting name="BankOfCeylon_BOCWebReference_Service" serializeAs="String">
  58. <value>https://www.combanksrv.com:7003/ServiceCom/ServiceCom</value>
  59. </setting>
  60. </BankOfCeylon.Properties.Settings>
  61. </applicationSettings>
  62. <runtime>
  63. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  64. <dependentAssembly>
  65. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  66. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  67. </dependentAssembly>
  68. <dependentAssembly>
  69. <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  70. <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
  71. </dependentAssembly>
  72. <dependentAssembly>
  73. <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  74. <bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
  75. </dependentAssembly>
  76. <dependentAssembly>
  77. <assemblyIdentity name="Unity.Abstractions" publicKeyToken="6d32ff45e0ccc69f" culture="neutral" />
  78. <bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
  79. </dependentAssembly>
  80. </assemblyBinding>
  81. </runtime>
  82. </configuration>