Take a survey

Developing Applications Using APIs > Working with LiveCycle ES Repository > Updating Resources > Updating resources using the web service API

Updating resources using the web service API
To programmatically update a resource using the Repository 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 containing the user name and password.
3.
Specify the URI of the resource to be retrieved and read the resource. In this example, the URI of the resource is "/testFolder/testResource". For more information, see Reading Resources.
4.
Update the Resource object’s information. In this example, to update the description, assign a new value to the Resource object’s description field.
5.
Invoke the RepositoryServiceService object’s updateResource method, and pass in the following parameters:
A System.String object containing the resource’s URI.
The Resource object containing the updated resource information.
A boolean value indicating whether to update the major or minor version. In this example, a value of true is passed in to indicate that the major version is to be incremented.
A boolean value indicating whether the major or minor version has been specified. In this example, a value of false is passed in to indicate that the major version has not been specified.
Pass null for the remaining 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/repositoryUpdatingFiles.124.4.html