This article assumes that you have some knowledge of programming concepts and are familiar with web services and LiveCycle Remoting. For information about using web services and LiveCycle Remoting, see "Invoking LiveCycle ES Using LiveCycle Remoting" and "Invoking LiveCycle ES Using Web Services" in Programming with LiveCycle. The Backup and Restore service lets you put LiveCycle ES into backup mode, which enables hot backups to be performed. Hot backups permit you to backup the LiveCycle server while it is running, eliminating any downtime. The Backup and Restore service does not actually perform a backup of LiveCycle ES or restore your system. Instead, it puts your server in a state that enables you to perform consistent and reliable backups while your server continues to run. You are responsible for backing up the Global Document Storage (GDS) and the database connected to the LiveCycle ES server. The GDS is a directory used to store files, such as files used with long-lived processes.
As an administrator, you can use the LiveCycle Administration Console to put LiveCycle ES into backup mode. You can also programmatically put LiveCycle ES into backup mode using the Java API and web services, but because the Backup and Restore service cannot be used in a process created using Workbench ES, it cannot be invoked using LiveCycle Remoting as described in Programming with LiveCycle ES. To invoke the Backup and Restore service using LiveCycle Remoting, you must invoke the service directly. You may want to invoke the Backup and Restore service programmatically because you want to build software applications for backing up your server.
The trick to invoking a service directly using LiveCycle Remoting is to know the name of the service and the string values to refer to types, methods, and properties. To determine the string values, you can look at the WSDL on the server by referring to the WSDL by its name. (See the table at Invoking LiveCycle ES Using APIs > Invoking LiveCycle ES using Web Services). For example, to use the Backup and Restore service, you type the following in a web browser:
http://localhost:8080/soap/services/BackupService?wsdl&lc_version=8.2.1
From returned WSDL, you can then determine the string names of the types, methods, and properties to use as values for accessing the remote objects for your ActionScript and MXML code. Alternatively, you can also determine the values to use by stepping through accessed objects using the debugger in Flex Builder and see the results from the ResultEvent.result property.
This blog entry, describes how to write ActionScript and MXML code to invoke the Backup and Restore service using LiveCycle Remoting to do the following tasks:
- Enter backup mode.
- Leave backup mode.
Continue reading…
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)