Catalog service GetFolders method

Gets a list of accessible folder names available on an ArcGIS Server site.

GetFolders()

Return Value

A string array representing the folder names.

Remarks

Only folders accessible by the identity defined via credentials on the Catalog SOAP proxy will be returned. To get service descriptions within a specific folder, use the GetServiceDescriptionsEx method.

Examples

C#

Catalog catalog = new Catalog();

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

string[] folders = catalog.GetFolders();

for (int index = 0; index < folders.Length; index++)

{

      string >foldername = folders[index];

}

VB.NET

Dim catalog As Catalog = New Catalog()

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

 

Dim folders() As String = catalog.GetFolders()

Dim index As Integer

 

For index = 0 To folders.Length- 1

      Dim foldername As String = folders(index)

Next

Java

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

ServiceCatalogBindingStub serviceCatalog = new ServiceCatalogBindingStub(serviceURL);

String[] folders = serviceCatalog.getFolders();

String folderName;

for (int index = 0; index < folders.length; index++){

      folderName = folders[index];

      System.out.println("Folder Name: " + folderName);

}

2/28/2020