Udostępnij za pośrednictwem


Tutorial: Accessing the Report Server Web Service Using Visual Basic or Visual C#

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 2005 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 2005 Reporting Services configured for native mode.
  • Microsoft Visual Studio 2005 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 AdventureWorks Report Samples.

Note

The samples are not installed automatically during setup, but you can install them at any time. For information about installing the samples, see Installing 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#)

Note

When reviewing tutorials it is recommended you add next and previous buttons to the document viewer toolbar. For more information, see Adding Next and Previous Buttons to Help.

See Also

Concepts

Reporting Services Tutorials

Other Resources

AdventureWorks Report Samples
Installing AdventureWorks Sample Databases and Samples

Help and Information

Getting SQL Server 2005 Assistance