Take a survey

Developing Applications Using APIs > Working with LiveCycle ES Repository > Creating Folders > Creating folders using the web service API

Creating folders using the web service API
To create a folder by using the web service API, perform the following tasks:
1.
2.
Using the Microsoft .NET client assembly, create a RepositoryServiceService object by invoking its default constructor. Set its Credentials property using a System.Net.NetworkCredential object that contains the user name and password.
3.
Create the folder by using the default constructor for the ResourceCollection class and pass in the following parameters:
An Id object, which is created by invoking the default constructor for the Id class and assigned to the Resource object’s id field.
An Lid object, which is created by invoking the default constructor for the Lid class and assigned to the Resource object’s lid field.
A string containing the name of the resource collection, which is assigned to the Resource object’s name field. The name used in this example is "testfolder".
A string containing the description of the resource collection, which is assigned to the Resource object’s description field. The description used in this example is "test folder".
4.
Invoke the RepositoryServiceService object’s writeResource method and pass in the following parameters:
The ResourceCollection object representing the folder.
Pass null for the other two parameters.
View Quick Start
 

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/repositoryCreatingFolders.120.4.html