Jump to: navigation, search

Difference between revisions of "Configuration Files/Bindings.config"


 
(One intermediate revision by the same user not shown)
Line 43: Line 43:
 
</source>
 
</source>
  
== Transport Security Toggle (HTTP / HTTPS) ==
+
==== Transport Security Toggle (HTTP / HTTPS) ====
 
Controls whether the service endpoints require HTTP or HTTPS at the transport level.
 
Controls whether the service endpoints require HTTP or HTTPS at the transport level.
  
=== HTTP ===
+
===== HTTP =====
 
To enable HTTP, set the binding security mode to None.
 
To enable HTTP, set the binding security mode to None.
 
<source lang="XML">
 
<source lang="XML">
Line 54: Line 54:
 
</source>
 
</source>
  
=== HTTPS ===
+
===== HTTPS =====
 
To enable HTTPS, set the binding security mode to Transport.
 
To enable HTTPS, set the binding security mode to Transport.
 
<source lang="XML">
 
<source lang="XML">
Line 63: Line 63:
  
 
{{Hint|Transport security mode is the default configuration.}}
 
{{Hint|Transport security mode is the default configuration.}}
{{Attention|The [[Configuration_Files/web.config#HTTPS]] must also be adapted accordingly.}}
+
{{Attention|The [[Configuration_Files/web.config#Transport_Security_Toggle_.28HTTP_.2F_HTTPS.29]] must also be adapted accordingly.}}
 +
 
  
  

Latest revision as of 08:45, 23 January 2026

Bindings.config

In this file the bindings can be configured to provide different configurations for data services and endpoints - specified by the name, which then is used in the service/client configuration.

Configuration

See Configuring Bindings for Windows Communication Foundation Services for further details and Configuring Timeout Values on a Binding for information about timeout configuration.

Download large data branches

If the service has to support the streaming transfer mode - e.g. used for downloading large data branches in the UBIK client, ensure to provide the binding definition for "BasicHttpBinding_UBIKContent" (see example). The client setting "ContentServiceConfig" should be set accordingly.

Upload of large files

For security reasons, we allow uploading files with a size of 2000000 Bytes (2MB). To increase the size the attributes maxBufferPoolSize, maxReceivedMessageSize, maxBufferSize, maxStringContentLength, maxArrayLength, maxBytesPerRead, maxNameTableCharCount must be adapted in their respective tags webHttpBinding, basicHttpBinding, and wsHttpBinding.

IC Hint square.pngThe relevant settings for uploading large files are handled in Bytes.
IC Attention.pngThe Configuration Files/web.config must also be adapted otherwise, the upload will fail.
IC Attention.pngIf you are using Windows Internet Information Services (IIS), the maximum upload file size must be reconfigured in IIS otherwise the upload will fail. Configure Microsoft IIS for UBIK
Example Upload of files with 200MB Size
<wsHttpBinding>
    <binding
           name="WSHttpBinding"
           sendTimeout="00:05:00"
           maxBufferPoolSize="200000000"
           maxReceivedMessageSize="200000000"
           receiveTimeout="01:00:00">
        <readerQuotas
               maxDepth="32"
               maxStringContentLength="200000000"
               maxArrayLength="200000000"
               maxBytesPerRead="200000000"
               maxNameTableCharCount="200000000"/>
        <security mode="Transport">
            <transport clientCredentialType="None"/>
        </security>
    </binding>
    <binding name="WSHttpBinding_IUBIKPush">
        <security mode="Transport">
            <transport clientCredentialType="None"/>
        </security>
    </binding>
</wsHttpBinding>

Transport Security Toggle (HTTP / HTTPS)

Controls whether the service endpoints require HTTP or HTTPS at the transport level.

HTTP

To enable HTTP, set the binding security mode to None.

<security mode="None">
  <transport clientCredentialType="None" />
</security>
HTTPS

To enable HTTPS, set the binding security mode to Transport.

<security mode="Transport">
  <transport clientCredentialType="None" />
</security>
IC Hint square.pngTransport security mode is the default configuration.
IC Attention.pngThe Configuration Files/web.config must also be adapted accordingly.


See also