Skip to main content

How to: Configure the Report Service Client via the ServiceReferences.ClientConfig File

This sample shows how you can use the ServiceReferences.ClientConfig file to configure the client options of your DevExpress.XtraReports.Service.ReportService.

The ServiceReferences.ClientConfig file's content is shown below.


<configuration>
    <system.serviceModel>
      <bindings>
        <basicHttpBinding>
          <binding name="basicBindingConfiguration"
                   closeTimeout="00:33:00"
                   openTimeout="00:33:00"
                   sendTimeout="00:33:00"
                   receiveTimeout="00:33:00"/>
        </basicHttpBinding>
      </bindings>
      <client>
        <endpoint name="endpointConfiguration"
                  address="../ReportService1.svc"
                  binding="basicHttpBinding"
                  bindingConfiguration="basicBindingConfiguration"
                  contract="ServiceReference.IReportService" />
      </client>
    </system.serviceModel>
</configuration>

Note that you cannot set the ReportServicePreviewModel.ServiceUri property to an empty string, so you should always assign at least a fake value to it in XAML.

The result is shown in the following image.

ServiceReferences-ClientConfig