Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 2.56 KB

calling-web-service-methods.md

File metadata and controls

41 lines (36 loc) · 2.56 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom helpviewer_keywords
Calling Web Service Methods
Call methods of a proxy class to perform reporting operations on the report server. Web service methods have public access and require appropriate arguments.
maggiesMSFT
maggies
03/14/2017
reporting-services
report-server-web-service
reference
updatefrequency5
Web service [Reporting Services], SOAP
Web service [Reporting Services], calls
calling Web service
Report Server Web service, SOAP
XML Web service [Reporting Services], calls
Report Server Web service, calls
XML Web service [Reporting Services], SOAP
SOAP [Reporting Services], calls

Calling Web Service Methods

When you use a [!INCLUDEmsCoName] [!INCLUDEdnprdnshort] proxy class to call Web service operations, you do so by using the methods of that class. These methods respond like any other method of a class in the [!INCLUDEdnprdnshort] class library. All Web service methods have public access and require you to supply the appropriate number of arguments and argument types. After you have created an instance of the proxy class in your project, you can call the methods to perform reporting operations via the report server. The following C# code illustrates the use of the xref:ReportService2010.ReportingService2010.ListChildren%2A method of the xref:ReportService2010.ReportingService2010 proxy class. The code is used to make a recursive call to the Web service that returns an array of xref:ReportService2010.CatalogItem objects that contains a list of all items in the report server database:

Dim rs As New ReportingService2010()  
rs.Credentials = System.Net.CredentialCache.DefaultCredentials  
Dim items As CatalogItem() = rs.ListChildren("/", True)  
ReportingService2010 rs = new ReportingService2010();  
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;  
CatalogItem[] items = rs.ListChildren("/", true);  

See Also

Building Applications Using the Web Service and the .NET Framework
Report Server Web Service
Technical Reference (SSRS)