App.config 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <startup>
  4. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
  5. </startup>
  6. <connectionStrings>
  7. <add name="gov_ls" providerName="MySql.Data.MySqlClient" connectionString="Database=gov_ls;Data Source=127.0.0.1;UserId=root;Password=root"/>
  8. <add name="gov_ld" providerName="MySql.Data.MySqlClient" connectionString="Database=gov_ld;Data Source=127.0.0.1;UserId=root;Password=root"/>
  9. </connectionStrings>
  10. <system.serviceModel>
  11. <bindings>
  12. <basicHttpBinding>
  13. <binding name="BasicHttpBinding_ICodeService"/>
  14. </basicHttpBinding>
  15. </bindings>
  16. <behaviors>
  17. <endpointBehaviors>
  18. <behavior name="NewBehavior0">
  19. <webHttp helpEnabled="true" defaultBodyStyle="Wrapped"/>
  20. </behavior>
  21. </endpointBehaviors>
  22. <serviceBehaviors>
  23. <behavior name="NewBehavior0">
  24. <serviceMetadata httpGetEnabled="true"/>
  25. <serviceDebug includeExceptionDetailInFaults="true"/>
  26. </behavior>
  27. </serviceBehaviors>
  28. </behaviors>
  29. <services>
  30. <service behaviorConfiguration="NewBehavior0" name="Winsoft.GOV.WCF.PowerMettersService">
  31. <clear/>
  32. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
  33. <endpoint binding="basicHttpBinding" contract="Winsoft.GOV.WCF.IPowerMettersService"/>
  34. <host>
  35. <baseAddresses>
  36. <add baseAddress="http://127.0.0.1:12351"/>
  37. </baseAddresses>
  38. </host>
  39. </service>
  40. </services>
  41. </system.serviceModel>
  42. </configuration>