You can programmatically validate a DDX document that is used by the Assembler service. That is, using the Assembler service API, you can determine whether or not a DDX document is valid. For example, if you upgraded from a previous LiveCycle version and you want to ensure that your DDX document is valid, you can validate it using the Assembler service API.Include the necessary files in your development project. If you are creating a client application by using Java, include the necessary JAR files. If you are using web services, ensure that you include the proxy files.
• adobe-utilities.jar (required if LiveCycle ES is deployed on JBoss)
• jbossall-client.jar (required if LiveCycle ES is deployed on JBoss)If LiveCycle ES is deployed on a supported J2EE application server other than JBoss, you must replace the adobe-utilities.jar and jbossall-client.jar files with JAR files that are specific to the J2EE application server that LiveCycle ES is deployed on. For information about the location of all LiveCycle ES JAR files, see Including LiveCycle ES Java library files.Before you can programmatically perform an Assembler operation, you must create an Assembler service client.When validating a DDX document, you must set specific run-time options that instruct the Assembler service to validate the DDX document as opposed to executing it. Also, you can increase the amount of information that the Assembler service writes to the log file. For information about the run-time options that you can set, see the AssemblerOptionSpec class reference in LiveCycle ES API References.After you create the Assembler service client, reference the DDX document, and set run-time options, you can invoke the invokeDDX operation to validate the DDX document. When validating the DDX document, you can pass null as the map parameter (this parameter usually stores PDF documents that the Assembler requires to perform the operation(s) specified in the DDX document).If validation fails, an exception is thrown and the log file that contains details that explains why the DDX document is invalid can be obtained from the OperationException instance. Once past the basic XML parsing and schema checking, then the validation against the DDX specification is performed. All errors that are located in the DDX document are specified in the log.The Assembler service returns the validation results that you can write to a XML log file. The amount of detail that the Assembler service writes to the log file depends on the run-time option that you set.
| Programming with LiveCycle ES (LiveDocs) |
| Adobe LiveCycle ES Update 1 |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000611_3.html