Java API快速入门简介

本文档中的示例和示例仅适用于AEM Forms on JEE环境。

AdobeAEM Forms API快速入门可以帮助您加快开发与AEM Forms服务交互的程序。 快速入门​是完整的程序,您可以将其复制并粘贴到您自己的项目中,并用作起点。 您可以运行快速入门以了解其行为方式,并根据自己的需求对其进行修改。

AEM Forms操作可以使用AEM Forms强类型API执行,并且连接模式应设置为SOAP。

Java强类型API快速入门提供了执行Java应用程序所需的JAR文件列表。 大多数Java快速启动都是控制台应用程序,运行于 main. 但是,Forms Java强类型API快速入门是作为在Web应用程序中运行的Java servlet实现的。

JAR文件列表位于“快速入门”开头处的注释部分中。 例如,以下注释位于“输出”快速入门中,并且是每个Java快速入门中提供的典型JAR文件列表。

 /*
     * This Java Quick Start uses the SOAP mode and contains the following JAR files
     * in the class path:
     * 1. adobe-output-client.jar
     * 2. adobe--client.jar
     * 3. adobe-usermanager-client.jar
     *
     * These JAR files are located in the following path:
     * <install directory>/Adobe/Adobe_Experience_Manager_forms/SDK/client-libs/common
     *
     * The adobe-utilities.jar file is located in the following path:
     * <install directory>/Adobe/Adobe_Experience_Manager_forms/SDK/client-libs/jboss
     *
     * The jboss-client.jar file is located in the following path:
     * <install directory>/Adobe/Adobe_Experience_Manager_forms/jboss/bin/client
     *
     * If you want to invoke a remote AEM Forms instance and there is a
     * firewall between the client application and AEM Forms, then it is
     * recommended that you use the SOAP mode. When using the SOAP mode,
     * you have to include additional JAR files located in the following
     * path
     * <install directory>/Adobe/Adobe_Experience_Manager_forms/SDK/client-libs/thirdparty
     *
     * For information about the SOAP
     * mode and the additional JAR files that need to be included,
     * see "Setting connection properties" in Programming
     * with AEM Forms
     *
     * For complete details about the location of the AEM Forms JAR files,
     * see "Including AEM Forms library files" in Programming
     * with AEM Forms
     */

多项服务快速入门

最快速入门位于 在JEE中使用AEM Forms编程 调用特定服务以执行操作。 但是,某些快速启动会调用多个AEM Forms服务以执行给定工作流。 以下列表提供了可调用多个AEM Forms服务的Java快速启动:

快速入门(SOAP模式):使用Java API将位于AEM Forms存储库中的文档传递到输出服务 (调用Repository and Output服务)

快速入门(SOAP模式):使用Java API基于片段创建PDF文档 (调用Assembler and Output服务)

快速入门(SOAP模式):使用Java API使用提交的XML数据创建PDF文档 (调用Forms、输出和文档管理服务)

快速入门(SOAP模式):使用Java API将文档传递到Forms服务 (调用Forms和文档管理服务)

快速入门(SOAP模式):使用Java API对基于XFA的表单进行数字签名 (调用Forms和签名服务)

快速入门(SOAP模式):使用Java API管理角色和权限 (调用DirectoryManager和AuthorizationManager服务)

快速入门(SOAP模式):使用Java API将文档传递到输出服务 (调用Output and Document Management服务)

注意

“使用AEM Forms编程”中的“快速入门”基于部署在JBoss® Application Server和Microsoft® Windows®操作系统上的AEM Forms。 但是,如果您使用的是其他操作系统(如UNIX®),请将特定于Windows的路径替换为适用的操作系统支持的路径。 同样,如果您使用的是其他J2EE应用程序服务器,请确保指定有效的连接属性。 (请参阅 设置连接属性.)

注意

大多数Web服务快速启动都使用C#编写,并且使用.NET框架。 但是,您可以创建客户端应用程序逻辑,以便能够在支持SOAP标准的任何开发环境中调用AEM Forms服务。 (请参阅 使用Web服务调用AEM Forms.)

在此页面上