Export (0) Print
Expand All
Expand Minimize

ReportingService2010.ListExtensions Method

Returns a list of extensions that are configured for a given extension type.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListExtensions", RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Extension[] ListExtensions(
	string ExtensionType
)

Parameters

ExtensionType
Type: System.String
The extension type for which to list the configured extensions. For a list of supported extension types, use the ListExtensionTypes method.

Return Value

Type: ReportService2010.Extension[]
Returns an array of Extension objects that contain the available extensions.

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

class Sample
{
    static void Main(string[] args)
    {
        ReportingService2010 rs = new ReportingService2010();
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
            "ReportService2010.asmx";
        rs.Credentials = 
            System.Net.CredentialCache.DefaultCredentials;

        Extension[] extensions = null;

        // Retrieve a list of all supported 
        // data processing extensions. 
        try
        {
            extensions = rs.ListExtensions("Data");

            if (extensions != null)
            {
                foreach (Extension extension in extensions)
                {
                    Console.WriteLine("Name: {0}", extension.Name);
                }
            }
        }
        catch (SoapException e)
        {
            Console.WriteLine(e.Detail.OuterXml);
        }
    }
}
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft