CHAPTER 8 DEPLOYING REPORTS
Note The CreateReportEditSession method might pass sensitive data, including user credentials, over the
network. You should use SSL encryption whenever possible when making Web service calls.
First, you’ll create a new C# Windows Forms solution with Visual Studio 2008. Call this project
SSRS_Publisher. This example will be in C#, but the source examples from the website will also have a
working version written in VB.NET as well. Once your new project is created, rename the Form1.cs file to
Publisher.cs and allow VS to update all of the references.
Accessing the Web Service
You need to add a reference to the SSRS 2012 Report Server Web service, which is the same as you did in
Chapter 5 for the report viewer. You do this by selecting Project Add Web Reference, right-clicking the
references in the Solution Explorer and selecting Add Web Reference; alternatively, you can right-click
the project in the Solution Explorer and select Add Web Reference. Depending on the version of VS and
.NET you are working with, you may not immediately see the option to add a web reference.
If you don’t see the option for Add Web Reference in those locations, you may need to use a
different method to add the reference. You will need to select Project Add Service Reference. From this
screen, you will click the advanced button on the bottom left of the window. In the advanced settings
window, you will click on the Add Web Reference button in the bottom left of the screen to bring up the
web reference window.
When the dialog box appears, enter the following URL:
http://localhost/reportserver/reportservice2010.asmx
Substitute the name of your server for localhost in the preceding URL if you are using a remote
server and then click the arrow button next to the URL. You may be prompted for your credentials at this
point to verify that you have permissions to access the web service. You should now see a dialog box
similar to the one in Figure 8-12.