Need More Info
Last Updated: 04 Oct 2024 14:52 by Lennert
Lennert
Created on: 17 Sep 2024 08:41
Type: Feature Request
1
Allow overriding the Telerik Reporting service DelegatingHandler or HttpClientHandler

Hi,
For our product we were looking into adding additional Request headers to the HTTP requests made by the Telerik Reporting library to the webservice data endpoints for our reports.
We tried adding the headers through a custom DelegatingHandler or HttpClientHandler, but found those were not being picked up.
Not when using the Web Report Designer or Blazor Report Viewer.

Any change we could register such a DelegatingHandler or HttpClientHandler?
Or any other suggestion on a how to add additional headers to the outgoing requests?

2 comments
Lennert
Posted on: 04 Oct 2024 14:52

Hi Dimitar,

Thanks for your comment.
To clarify, we are looking at adding a header parameter with the following restrictions:

  • the header should not be visible by the client (report viewer or web report designer)
  • the header value is not static. It is a dynamic value that is set by the backend.
  • the header should be added to all requests made by the backend to the webservice api endpoint, whether the data was request to render a report in the report viewer or for the various datasource requests made by the web report designer at design time or preview time.

Correct me if I'm wrong, but I don't think your suggestion on using report parameters would fit the above restrictions.

Kind regards,

Lennert


ADMIN
Dimitar
Posted on: 24 Sep 2024 08:32

Hi Lennert,

If I understand correctly, you would like to add additional request headers to the HTTP/HTTPS requests made by the WebServiceDataSource components used in the reports, is that correct?

Please note that this is already supported by the WebServiceDataSource component through its Parameters collection and they can be defined in the report design itself.

You may have a look at the Header Parameters section of the Using Parameters with WebServiceDataSource explained with examples - Telerik Reporting article for more details on how to do that.

If you connect the request parameters to report parameters, you will be able to also dynamically change the request parameter values through the ReportSource property of the WPF Report Viewer since you can use it to pass new values to the report parameters - Setting ReportSource to ReportViewers Explained - Telerik Reporting.

If this is not the scenario that you are having issues with, please share more details on it so that we can have a better idea of the problem.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.