The parameter will be included as a Header Cookie in the request. Source tab: Create and validate a detail parameterized filter expression. Will result in a request with the Header named headerParameter and value MyHeader for its design-time values: Add a prompt that references a data item. A setup in the Web Service Data Source Wizard like: The parameter will be included as a Header in the request with Header Name the name of the parameter, and Header Value the value of the parameter.
The final URL will be in the format serviceUrl?queryParameterName1=value1&queryParameterName2=value2&.įor example, in a Web Api project to call the Action GetWithQueryParameters(int id, string category) the default service URL will be The images display how to set the query parameters in the Web Service Data Source Wizard of the Report Designer:Īnd how will the generated final URL for the design-time parameter values look in Fiddler: The query type parameters will be automatically concatenated to the Service URL. The final request performed by the WebServiceDataSource component with the design-time values as seen in Fiddler: The multi-value parameter run-time and design-time values should be surrounded in square brackets to indicate an array: The 'Content-Type' header that is needed for the POST requests is case-sensitive. Generally, the Header Names are case-insensitive. It is necessary to provide an additional Header "Content-Type" with value "application/json". For example, in the next set-up, is a single-value parameter and is a multi-value parameter: The multi-value parameter is provided as it is.
The single-value parameter should be surrounded by quotation marks. Using Inline Parameters in the Body of the POST request The entire Service URL can also be set to a WebServiceDataSource parameter, for example to This allows for larger flexibility in using different end-points of a Web Service, or even different Web Services for the same data item. The final request made by the WebServiceDataSource component to the web service with the design-time parameter value as captured by Fiddler will look like: In the next step of the Wizard it is necessary to set the run-time and the design-time values for the parameter: In the WebServiceDataSource Wizard, the Service URL can be provided as constantUrl, for example: The values of this parameter type replace the corresponding part of the Service URL, and can be included in the body of a POST request. The supported data source parameter types are: Wyns powerful reporting module is driven by the same ActiveReports engine, which has led the industry for 20+ years. The WebServiceDataSource can take parameters. It requires the base URL of the servcie specified in the Service URL property. The WebServiceDataSource component can request data in JSON format from a running web service. Download free 30-day trial Using Parameters with the WebServiceDataSource component