app.config 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <system.serviceModel>
  4. <bindings>
  5. <basicHttpBinding>
  6. <binding name="DictServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
  7. receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
  8. bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
  9. maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
  10. messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
  11. useDefaultWebProxy="true">
  12. <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
  13. maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  14. <security mode="None">
  15. <transport clientCredentialType="None" proxyCredentialType="None"
  16. realm="" />
  17. <message clientCredentialType="UserName" algorithmSuite="Default" />
  18. </security>
  19. </binding>
  20. </basicHttpBinding>
  21. <customBinding>
  22. <binding name="DictServiceSoap12">
  23. <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
  24. messageVersion="Soap12" writeEncoding="utf-8">
  25. <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
  26. maxBytesPerRead="4096" maxNameTableCharCount="16384" />
  27. </textMessageEncoding>
  28. <httpTransport manualAddressing="false" maxBufferPoolSize="524288"
  29. maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Anonymous"
  30. bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
  31. keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Anonymous"
  32. realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
  33. useDefaultWebProxy="true" />
  34. </binding>
  35. </customBinding>
  36. </bindings>
  37. <client>
  38. <endpoint address="http://services.aonaware.com/DictService/DictService.asmx"
  39. binding="basicHttpBinding" bindingConfiguration="DictServiceSoap"
  40. contract="DictionarySuggestService.DictServiceSoap" name="DictServiceSoap" />
  41. <endpoint address="http://services.aonaware.com/DictService/DictService.asmx"
  42. binding="customBinding" bindingConfiguration="DictServiceSoap12"
  43. contract="DictionarySuggestService.DictServiceSoap" name="DictServiceSoap12" />
  44. </client>
  45. </system.serviceModel>
  46. </configuration>