Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <configuration>
  3. <system.diagnostics>
  4. <sources>
  5. <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
  6. propagateActivity="true">
  7. <listeners>
  8. <add type="System.Diagnostics.DefaultTraceListener" name="Default">
  9. <filter type="" />
  10. </add>
  11. <add name="ServiceModelTraceListener">
  12. <filter type="" />
  13. </add>
  14. </listeners>
  15. </source>
  16. </sources>
  17. <sharedListeners>
  18. <add initializeData="C:WCF Service Logsapp_tracelog.svclog"
  19. type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
  20. name="ServiceModelTraceListener" traceOutputOptions="DateTime, Timestamp">
  21. <filter type="" />
  22. </add>
  23. </sharedListeners>
  24. </system.diagnostics>
  25. <system.serviceModel>
  26. <bindings>
  27. <netTcpBinding>
  28. <binding name="netTcp" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000">
  29. <readerQuotas maxDepth="500" maxStringContentLength="50000000" maxArrayLength="50000000" maxBytesPerRead="50000000" maxNameTableCharCount="50000000" />
  30. <security mode="None"></security>
  31. </binding>
  32. </netTcpBinding>
  33. </bindings>
  34. <services>
  35. <service behaviorConfiguration="ReportingComponentLibrary.TemplateServiceBehavior"
  36. name="ReportingComponentLibrary.TemplateReportService">
  37. <endpoint address="TemplateService" binding="netTcpBinding" bindingConfiguration="netTcp"
  38. contract="ReportingComponentLibrary.ITemplateService"></endpoint>
  39. <endpoint address="ReportService" binding="netTcpBinding" bindingConfiguration="netTcp"
  40. contract="ReportingComponentLibrary.IReportService"/>
  41. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  42. <host>
  43. <baseAddresses>
  44. <add baseAddress="net.tcp://localhost:8001/TemplateReportService" />
  45. <add baseAddress="http://localhost:8181/TemplateReportService" />
  46. </baseAddresses>
  47. </host>
  48. </service>
  49. </services>
  50. <behaviors>
  51. <serviceBehaviors>
  52. <behavior name="ReportingComponentLibrary.TemplateServiceBehavior">
  53. <serviceMetadata httpGetEnabled="True"/>
  54. <serviceDebug includeExceptionDetailInFaults="True" />
  55. </behavior>
  56. </serviceBehaviors>
  57. </behaviors>
  58. </system.serviceModel>
  59. </configuration>
  60.  
  61. http://localhost:8181/TemplateReportService
  62.  
  63. net.tcp://localhost:8001/TemplateReportService
  64.  
  65. net.tcp://localhost:8001/TemplateReportService
  66.  
  67. <endpoint address="TemplateService"
  68.  
  69. <endpoint address="ReportService"
  70.  
  71. net.tcp://localhost:8001/TemplateReportService/TemplateService
  72.  
  73. net.tcp://localhost:8001/TemplateReportService/ReportService
  74.  
  75. <system.serviceModel>
  76. <behaviors>
  77. <serviceBehaviors>
  78. <behavior name="behaviorConfig">
  79. <!--your custom behavior here-->
  80. </behavior>
  81. </serviceBehaviors>
  82. </behaviors>
  83. <bindings>
  84. <basicHttpBinding>
  85. <binding name="basicHttpBindingConfig"/>
  86. </basicHttpBinding>
  87. <netTcpBinding>
  88. <!--our netTcpBinding binding-->
  89. <binding name="netTcpBindingConfig"/>
  90. </netTcpBinding>
  91. </bindings>
  92. <services>
  93. <service name="MyNamespace.ServiceLayer.MyService" behaviorConfiguration="behaviorConfig">
  94. <!--Endpoint for basicHttpBinding-->
  95. <endpoint address="" binding="basicHttpBinding" contract="MyNamespace.ServiceLayer.IMyService" bindingConfiguration="basicHttpBindingConfig"/>
  96. <!--Endpoint for netTcpBindingConfig-->
  97. <endpoint address="" binding="netTcpBinding" contract="MyNamespace.ServiceLayer.IMyService" bindingConfiguration="netTcpBindingConfig"/>
  98. <host>
  99. <!--This part is important for IIS to determine the base addresses for your endpoints-->
  100. <baseAddresses>
  101. <!--Notice that baseAddress for net tcp is preceded by net.tcp -->
  102. <!--then ://localhost:{port} -->
  103. <!--Also the same for http, so you can figure out how to define a baseAddress for https-->
  104. <add baseAddress="net.tcp://localhost:8090"/>
  105. <add baseAddress="http://localhost:8080"/>
  106. </baseAddresses>
  107. </host>
  108. </service>
  109. </services>
  110. </system.serviceModel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement