Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <system.diagnostics>
- <sources>
- <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
- propagateActivity="true">
- <listeners>
- <add type="System.Diagnostics.DefaultTraceListener" name="Default">
- <filter type="" />
- </add>
- <add name="ServiceModelTraceListener">
- <filter type="" />
- </add>
- </listeners>
- </source>
- </sources>
- <sharedListeners>
- <add initializeData="C:WCF Service Logsapp_tracelog.svclog"
- type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
- name="ServiceModelTraceListener" traceOutputOptions="DateTime, Timestamp">
- <filter type="" />
- </add>
- </sharedListeners>
- </system.diagnostics>
- <system.serviceModel>
- <bindings>
- <netTcpBinding>
- <binding name="netTcp" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000">
- <readerQuotas maxDepth="500" maxStringContentLength="50000000" maxArrayLength="50000000" maxBytesPerRead="50000000" maxNameTableCharCount="50000000" />
- <security mode="None"></security>
- </binding>
- </netTcpBinding>
- </bindings>
- <services>
- <service behaviorConfiguration="ReportingComponentLibrary.TemplateServiceBehavior"
- name="ReportingComponentLibrary.TemplateReportService">
- <endpoint address="TemplateService" binding="netTcpBinding" bindingConfiguration="netTcp"
- contract="ReportingComponentLibrary.ITemplateService"></endpoint>
- <endpoint address="ReportService" binding="netTcpBinding" bindingConfiguration="netTcp"
- contract="ReportingComponentLibrary.IReportService"/>
- <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
- <host>
- <baseAddresses>
- <add baseAddress="net.tcp://localhost:8001/TemplateReportService" />
- <add baseAddress="http://localhost:8181/TemplateReportService" />
- </baseAddresses>
- </host>
- </service>
- </services>
- <behaviors>
- <serviceBehaviors>
- <behavior name="ReportingComponentLibrary.TemplateServiceBehavior">
- <serviceMetadata httpGetEnabled="True"/>
- <serviceDebug includeExceptionDetailInFaults="True" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
- </configuration>
- http://localhost:8181/TemplateReportService
- net.tcp://localhost:8001/TemplateReportService
- net.tcp://localhost:8001/TemplateReportService
- <endpoint address="TemplateService"
- <endpoint address="ReportService"
- net.tcp://localhost:8001/TemplateReportService/TemplateService
- net.tcp://localhost:8001/TemplateReportService/ReportService
- <system.serviceModel>
- <behaviors>
- <serviceBehaviors>
- <behavior name="behaviorConfig">
- <!--your custom behavior here-->
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <bindings>
- <basicHttpBinding>
- <binding name="basicHttpBindingConfig"/>
- </basicHttpBinding>
- <netTcpBinding>
- <!--our netTcpBinding binding-->
- <binding name="netTcpBindingConfig"/>
- </netTcpBinding>
- </bindings>
- <services>
- <service name="MyNamespace.ServiceLayer.MyService" behaviorConfiguration="behaviorConfig">
- <!--Endpoint for basicHttpBinding-->
- <endpoint address="" binding="basicHttpBinding" contract="MyNamespace.ServiceLayer.IMyService" bindingConfiguration="basicHttpBindingConfig"/>
- <!--Endpoint for netTcpBindingConfig-->
- <endpoint address="" binding="netTcpBinding" contract="MyNamespace.ServiceLayer.IMyService" bindingConfiguration="netTcpBindingConfig"/>
- <host>
- <!--This part is important for IIS to determine the base addresses for your endpoints-->
- <baseAddresses>
- <!--Notice that baseAddress for net tcp is preceded by net.tcp -->
- <!--then ://localhost:{port} -->
- <!--Also the same for http, so you can figure out how to define a baseAddress for https-->
- <add baseAddress="net.tcp://localhost:8090"/>
- <add baseAddress="http://localhost:8080"/>
- </baseAddresses>
- </host>
- </service>
- </services>
- </system.serviceModel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement