CHAPTER 8 DEPLOYING REPORTS
Figure 8-12. Add Web Reference dialog box
In the Web reference name textbox, enter SSRSWebService. This name is how the Web service is
referenced in the code. After this dialog box is closed and the reference is added to the project, add the
following using directives to the code at the top of your publisher.cs code with the rest of the standard
using directives:
using SSRS_Publisher.SSRSWebService;
Now you can reference the Web service much more easily because you don’t have to enter the fully
qualified namespace. You’ll also add three others using directives below this one that will allow you to
access the Web services and I/O-specific functions more easily in your code, as shown in Listing 8-3. You
can see what all of this together should look like in Figure 8-13.
Listing 8-3. Using Directives
using System.IO;
using System.Text.RegularExpressions;
using System.Web.Services.Protocols;