CDBC Client Configuration
Overview
CDBC Service use WCF architecture. To connect to CDBC service system.serviceModel section should be configured in client application's config file.
You can find some examples in different cases at Example configurations.
Add system.serviceModel section into your app.config or web.config.
Configurations
<system.serviceModel>
Description
Used to configuration communication mechanism and endpoint while connecting to cdbc service.
Add the following setting into your app.config.
XML example (http)
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="CdbcService" maxReceivedMessageSize="5798464" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="Your service url e.g. http://********/CdbcService/CdbcService.svc"
binding="basicHttpBinding"
bindingConfiguration="CdbcService"
contract="CdbcService.ICdbcService"
name="CdbcService.ICdbcService" />
</client>
</system.serviceModel>
Detailed example
Case 1. IIS use anonymous authentication
Case 2. IIS use basic authentication
<bindings>
Description
Bindings specify the communication mechanism to use when talking to cdbc service and indicate how to connect to cdbc service.
<client>
Description
Specify the endpoint information to connect to cdbc service.
Attributes
Attribute | Description | Value | Remarks |
---|---|---|---|
address | The url of your cdbc service | ||
binding | Binding that will be used. In this sample we use BasicHttpBinding. | Needn't change if you use example. | |
bindingConfiguration | Specify binding configuration name to use. (The binding configuration name should have been set in system.serviceModel section) | Needn't change if you use example. |