Databases Reference
In-Depth Information
This form will allow you to query a given Report Server to return a list of reports. Once it has returned
the reports, you can use it to access a list of parameters for the reports. Finally, you'll need to render the
report to a given folder location.
Setting Up the Reporting Service Web Service
Before you can get into rendering reports, you need to set up a reference to the Reporting Service Web ser-
vice. Once you have created your web reference, you can start to develop the application. The next few fig-
ures show you how to create a reference to the Web service. Start by adding a web reference to your project.
Open the Solution Explorer and right-click on the References folder. Click the Add Web Reference menu
item, as in Figure 12-9. That will open the Add Web Reference dialog.
Figure 12-9
In the Add Web Reference dialog, enter the location of Web service in the URL dialog. This URL will
depend on the Report Server name and the installed location of the Report Server virtual directory. By
default, the Report Server virtual directory is located under the root as /reportserver. For the default
virtual directory on a local machine, enter the following URL:
http://localhost/reportserver/reportservice.asmx?wsdl.
Once you have entered the URL, hit Enter to view a description of the Web service. Enter a name for the
new web reference and click Add Reference. I've named mine RSService. The dialog should look like
Figure 12-10 when filled in.
Now that you have referenced the Web service, you are ready to start writing your code. The first thing
you can do is add a using (C#) or Imports VB.(VB) statements to your code. The first part of the using
statement will be the application name followed by the web reference name. I have called my C# project
Rendering and my VB project RenderingVB.
Search WWH ::




Custom Search