Difference between revisions of "Configuration Files/Bindings.config"
(8 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
====Upload of large files==== | ====Upload of large files==== | ||
− | For security reasons | + | 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'''. |
{{Hint|The relevant settings for uploading large files are handled in Bytes.}} | {{Hint|The relevant settings for uploading large files are handled in Bytes.}} | ||
{{Attention|The [[Configuration_Files/web.config#Upload_of_large_files]] must also be adapted otherwise, the upload will fail.}} | {{Attention|The [[Configuration_Files/web.config#Upload_of_large_files]] must also be adapted otherwise, the upload will fail.}} | ||
− | {{Attention|If you are using Windows Internet Information Services (IIS) | + | {{Attention|If you are using Windows Internet Information Services (IIS), the maximum upload file size must be reconfigured in IIS otherwise the upload will fail. [[HowTo:Configure_Microsoft_IIS_for_UBIK#Configure_Upload_of_large_files]]}} |
===== Example Upload of files with 200MB Size===== | ===== Example Upload of files with 200MB Size===== | ||
<source lang="XML"> | <source lang="XML"> | ||
− | + | <wsHttpBinding> | |
− | <binding name="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"> | <security mode="Transport"> | ||
− | + | <transport clientCredentialType="None"/> | |
</security> | </security> | ||
− | + | </binding> | |
− | + | <binding name="WSHttpBinding_IUBIKPush"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<security mode="Transport"> | <security mode="Transport"> | ||
− | + | <transport clientCredentialType="None"/> | |
− | + | ||
</security> | </security> | ||
− | + | </binding> | |
− | + | </wsHttpBinding> | |
− | + | </source> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== See also == | == See also == | ||
* [[Configuration Files]] | * [[Configuration Files]] | ||
[[Category:Installing|Configuration Files/Bindings.config]] | [[Category:Installing|Configuration Files/Bindings.config]] |
Latest revision as of 09:48, 25 April 2024
Contents
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.
The Configuration Files/web.config must also be adapted otherwise, the upload will fail. |
If 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
<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>