Web service Data Source
The following example is going to look at building a report that uses a Web Service Data Source and dataset to retrieve a weather forecast based on a ZIP code. The reason behind my including this separate from the others is the fact that during the first edition of this book there were no real free web services to utilize as an example. However, these days there are plenty of free web services available to utilize for this purpose. Let's now build a report:
1. Create a new report called
WeatherByZipCode.rptdesign
.2. Choose the blank template.
3. From the Data Explorer, select Data Source | New Data Source.
4. From the list of Data Source types, choose Web Services Data Source, and set Data Source Name as
dsWeatherDataSource
.5. As WSDL URL or Location, enter the following URL: http://www.webservicex.net/WeatherForecast.asmx?wsdl. We do not need to fill in any of the other information as it will be retrieved from the WSDL file.
6. Click Finish.
7. From the Data...