Changes
===General===
See [http://msdn.microsoft.com/en-us/library/ms733830%28v=vs.110%29.aspx Configuring Services] for further information
===configSection===
In the configSection Tag service specific configuration sections can be defined. These settings include logging and exception handling in the ubik web service. This tag should not be changed generally.
<syntaxhighlight source lang="xml">
<configSections>
<section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
<section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
</configSections>
</syntaxhighlightsource>
===loggingConfiguration===
Here the logging of the web service is configured for different types of information (errors, warnings, ...). It is important to specify a path where the system user executing the web service has all the needed access rights.
<syntaxhighlight source lang="xml">
<loggingConfiguration name="" tracingEnabled="true" defaultCategory="ASSERTION">
<listeners>
</specialSources>
</loggingConfiguration>
</syntaxhighlightsource>
===exceptionHandling===
In this tag the settings for exception handling can be specified.
<syntaxhighlight source lang="xml">
<exceptionHandling>
<exceptionPolicies>
</exceptionPolicies>
</exceptionHandling>
</syntaxhighlightsource>
===appSettings===
Example 1:
<syntaxhighlight source lang="xml">
<appSettings>
<add key="UBIK.DataBase.ConnectionString" value="Data Source=ubikdbserver.mydomain;Initial Catalog=UBIK.MYDATABASE;User ID=myuser;Password=mypassword" />
<add key="UBIK.Service.SessionManagementUrl" value="" />
</appSettings>
</syntaxhighlightsource>
Example 2 (configured for an Microsoft Azure cloud database and a LAS service)
<syntaxhighlight source lang="xml">
<appSettings>
<add key="UBIK.DataBase.ConnectionString" value="Data Source=tcp:xxxxxxxx.database.windows.net,1433;Initial Catalog=UBIK.MYDATABASE;User ID=myclouduser@xxxxxxxx;Password=mypassword" />
<add key="UBIK.Service.SessionManagementUrl" value="https://myusamserver.mydomain/UBIK/USAM/USAM.svc/SOAP" />
</appSettings>
</syntaxhighlightsource>
===system.web===
This does not have to be edited in general.
<syntaxhighlight source lang="xml">
<system.web>
<customErrors mode="Off"/>
<compilation debug="true" defaultLanguage="c#" targetFramework="4.0" />
</system.web>
</syntaxhighlightsource>
===system.serviceModel===
:The client's endpoint addresses are ignored as they are replaced by the settings provided in appSettings at service runtime!
<syntaxhighlight source lang="xml">
<system.serviceModel>
<behaviors>
</client>
</system.serviceModel>
</syntaxhighlightsource>
===system.webServer===
This does not have to edited in general, except the setting for the maximum allowed size of received content. This can be changed by editing the value "maxAllowedContentLength" within the section "requestFiltering/requestLimits".
<syntaxhighlight source lang="xml">
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
</security>
</system.webServer>
</syntaxhighlightsource>