Catalog service GetServiceDescriptionsEx method

Gets an array of service descriptions that provide information on the type (e.g. MapServer), name, capabilities (e.g. Map), and URL endpoint of ArcGIS Server web services in a specific folder.

GetServiceDescriptionsEx(string FolderName)

Parameter

Description

FolderName

A string representing the name of a folder on an ArcGIS Server site. Use an empty string to represent the root folder.

Return Value

An array of ServiceDescription objects.

Remarks

Only service descriptions for services in the defined folder will be returned. The folder must be accessible by the identity defined via credentials on the Catalog SOAP proxy. Use the GetServiceDescriptions method to return service descriptions for all accessible services on the ArcGIS Server site, regardless of folder location.

Examples

C#

Catalog catalog = new Catalog();

catalog.Url = "http://localhost:6080/arcgis/services";

ServiceDescription[] servicedescriptions = catalog.GetServiceDescriptionsEx("SecureDirectory");

foreach (ServiceDescription servicedesc in servicedescriptions)

{

      string name = servicedesc.Name;

      string type = servicedesc.Type;

      string parenttype = servicedesc.ParentType;

      string capabilities = servicedesc.Capabilities;

      string url = servicedesc.Url;

}

VB.NET

Dim catalog As Catalog = New Catalog()

catalog.Url = "http://localhost:6080/arcgis/services"

 

Dim servicedescriptions() As ServiceDescription = catalog.GetServiceDescriptionsEx("SecureDirectory")

Dim servicedesc As ServiceDescription

 

For Each servicedesc In servicedescriptions

      Dim name As String = servicedesc.Name

      Dim type As String = servicedesc.Type

      Dim parenttype As String = servicedesc.ParentType

      Dim capabilities As String = servicedesc.Capabilities

      Dim url As String = servicedesc.Url

Next

Java

String serviceURL = "http://localhost:6080/arcgis/services";

ServiceCatalogBindingStub serviceCatalog = new ServiceCatalogBindingStub(serviceURL);

 

ServiceDescription[] sds = serviceCatalog.getServiceDescriptionsEx("SecureDirectory");

for (int i = 0; i < sds.length; i++) {

      ServiceDescription sd = sds[i];

      System.out.println("Service Name: " + sd.getName());

      System.out.println("Service Capabilities: " + sd.getCapabilities());

      System.out.println("Service Type: " + sd.getType());

      System.out.println("Service Parent Type: " + sd.getParentType());

      System.out.println("Service URL: " + sd.getUrl());

}

10/23/2013