<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- This section (system.diagnostics) should be removed or at least modified in production -->
  <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
        <listeners>
          <add type="System.Diagnostics.DefaultTraceListener" name="Default">
            <filter type="" />
          </add>
          <add name="ServiceModelMessageLoggingListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
      <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:\BBECServiceBusAdapter_web_messages.svclog"
        type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
        <filter type="" />
      </add>
      <add initializeData="c:\BBECServiceBusAdapter_web_tracelog.svclog"
        type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>
  
  <connectionStrings>
    <!-- Connection to AppFabric workflow persistence store - needs to be updated upon deployment -->
    <add
      name="BBECServiceBusAdapterPersistenceStoreConnection"
      connectionString="server=(local);database=AppFabricPersistence;integrated security=true"
      />
    <!-- Connection to AppFabric monitoring store - needs to be updated upon deployment -->
    <add
      name="BBECServiceBusAdapterMonitoringStoreConnection"
      connectionString="server=(local);database=AppFabricMonitoring;integrated security=true"
      />
  </connectionStrings>
  
  <appSettings>
    <!-- settings to connect to the BBEC instance -->
    <add key="baseApplicationName" value="BBEC Service Bus Adapter"/>
    <add key="appFxServiceUrl" value="http://localhost/wv/appfxwebservice.asmx" />
    <add key="databaseName" value="BBInfinity"/>
    
    <!-- settings for the securityGroup membership required for access to each operation in this service -->
    <add key="securityGroup_AddConstituent" value="ServiceBusAdapterUsers" />
    <add key="securityGroup_UpdateConstituent" value="ServiceBusAdapterUsers" />
    <add key="securityGroup_AddRevenue" value="ServiceBusAdapterUsers" />
    
    <!-- Miscellaneous settings -->
    <add key="loggingLevel" value="Verbose"/> <!-- None, Error, Warning, or Verbose (everything) -->
  </appSettings>
  
  <system.web>
    <compilation debug="true" targetFramework="4.0" />  <!-- This should be turned off in Production -->
    <customErrors mode="Off"/>  <!-- This should be turned on in Production -->
  </system.web>
  
  <system.serviceModel>
    <!-- This diagnostics section can be removed in Production -->
    <diagnostics>
      <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
    </diagnostics>
    
    <services>
      <service behaviorConfiguration="ServiceBusAdapterBehavior" name="BBECServiceBusAdapter">
        <host>
          <baseAddresses>
            <!-- This list should be updated upon deployment -->
            <add baseAddress="http://localhost/"/>
            <add baseAddress="http://mymachinename/"/>
            <add baseAddress="https://mymachinename/"/>
            <add baseAddress="http://mymachinename.mydomainname.com/"/>
            <add baseAddress="https://mymachinename.mydomainname.com/"/>
          </baseAddresses>
        </host>
        <endpoint address="soap11" binding="basicHttpBinding" name="BBECServiceBusAdapter_Basic"
          bindingConfiguration="basicBinding" contract="ServiceBusAdapter" />
        <endpoint address="soap12" binding="wsHttpBinding" name="BBECServiceBusAdapter_WS"
          bindingConfiguration="wsBinding" contract="ServiceBusAdapter" />
      </service>
      <service behaviorConfiguration="TestBehavior" name="TestService">
        <endpoint address="devWS" binding="wsHttpBinding" name="BBECServiceBusAdapter_DevWS"
          bindingConfiguration="wsBinding" contract="TestContract" />
      </service>
    </services>
    
    <bindings>
      <basicHttpBinding>
        <binding name="basicBinding">
          <security mode="Transport">
            <transport clientCredentialType="Basic" />  <!-- Should be set to 'Basic' for ESB Integration and Production environments (SSL required) -->
          </security>
        </binding>
      </basicHttpBinding>
      <wsHttpBinding>
        <binding name="wsBinding">
          <security mode="Transport">
            <transport clientCredentialType="Basic" />   <!-- Should be set to 'Basic' for ESB Integration and Production environments (SSL required) -->
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceBusAdapterBehavior">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />  <!-- This should be set to false in Production -->
          <etwTracking profileName="Troubleshooting Tracking Profile" />
          <!-- This probably needs adjusting for production -->
          <sqlWorkflowInstanceStore
            instanceCompletionAction="DeleteNothing"  
            instanceEncodingOption="None"
            instanceLockedExceptionAction="BasicRetry"
            connectionStringName="BBECServiceBusAdapterPersistenceStoreConnection"
            hostLockRenewalPeriod="00:00:30"
            runnableInstancesDetectionPeriod="00:00:05"
            />
          <workflowInstanceManagement authorizedWindowsGroup="AS_Administrators" />
          <workflowUnhandledException action="AbandonAndSuspend" />
          <workflowIdle timeToPersist="10675199.02:48:05.4775807" timeToUnload="00:01:00" />
        </behavior>
        <behavior name="TestBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        <behavior name="">
          <sqlWorkflowInstanceStore instanceCompletionAction="DeleteAll" instanceEncodingOption="None" instanceLockedExceptionAction="NoRetry" connectionStringName="BBECServiceBusAdapterPersistenceStoreConnection" hostLockRenewalPeriod="00:00:30" runnableInstancesDetectionPeriod="00:00:05" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    
  </system.serviceModel>
  
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <security>
      <authentication>
        <basicAuthentication enabled="true" defaultLogonDomain="BBNT" />  <!-- Default logon domain should be updated on deployment -->
        <windowsAuthentication enabled="false" />  <!-- This can be removed or set to 'false' for ESB Integration and Production environments assuming bindings were switched to Basic -->
      </authentication>
    </security>
  </system.webServer>
  
  <!-- This section (microsoft.applicationServer) should be updated on deployment (rt-click app in IISMgr and select 'Manage WCF and WF Services) -->
  <microsoft.applicationServer>
    <monitoring>
      <default enabled="true" connectionStringName="BBECServiceBusAdapterMonitoringStoreConnection" monitoringLevel="Troubleshooting" />
    </monitoring>
    
    <persistence>
      <instanceStores>
        <add name="BBECServiceBusAdapterStore" provider="SqlPersistenceStoreProvider" connectionStringName="BBECServiceBusAdapterPersistenceStoreConnection" />
      </instanceStores>
    </persistence>
  </microsoft.applicationServer>
</configuration>

Last edited Mar 4, 2012 at 9:09 PM by JaredScarbrough, version 2

Comments

No comments yet.