I've looked around on the docs and threads, but I can't seem to figure out the best way to get data from a WCF webservice with parameters. Of note, I'm using silverlight and can't bind my data to the report.
I create a Objectdatasource and it maps my return object ok when I add a service reference. But I don't see how to add parameters to my WCF webservice?
The examples I've seen only show web services with no parameters.
Do I need to do a binding for the datasource and then call my webservice in that?
public static ObjectDataSource ChangeConnectionString(object reportItem)
var report = (reportItem as Telerik.Reporting.Processing.Report);
var dataSource = (Telerik.Reporting.ObjectDataSource)report.DataSource;
MyService.MyClient client = ...
//How do I bind it to my datasource?
Or do I add parameters like this:
objectDataSource.Parameters.Add(new Telerik.Reporting.ObjectDataSourceParameter("productModelID", typeof(int), 23));
Are the parameters in quotes supposed to match the parmeters of the webservice?