Accessing the Report Server Web Service Using Visual Basic or Visual C# (SSRS Tutorial)

 

Applies To: SQL Server 2016

The following tutorial shows you how to access the Report Server Web service from an application created with Microsoft Visual Basic or Microsoft Visual C#.

What You Will Learn

During the course of this tutorial, you will complete the following:

  • Create a client application using the Microsoft Visual Studio 2010 Console Application project template.

  • Add a Web reference for the Report Server Web service.

  • Write code to access the Web service.

  • Run the console application in debug mode.

Requirements

To complete the tutorial, you must have the following:

  • Microsoft SQL Server 2012 Reporting Services.

  • Microsoft Visual Studio 2010 or a similar Microsoft .NET Framework-compatible development tool.

  • Sufficient permissions to be able to access the SQL Server Report Server Web service on the computer where your report server is located.

  • A report installed on your report server. This tutorial uses the sample report, Company Sales. For more information about sample reports, see SQL Server Reporting Services Product Samples.

Note


The samples are not installed automatically during setup, but you can install them at any time. For information about samples, see SQL Server Product Samples.

Estimated time to complete the tutorial: 60 minutes

Tasks

Lesson 1: Creating the Web Service Client Project

Lesson 2: Adding a Web Reference

Lesson 3: Accessing the Web Service

Lesson 4: Running the Application (VB - VC#)