Take a survey

Developing Applications Using APIs > Deploying LiveCycle Applications > Importing Applications > Importing applications using the web service API

Importing applications using the web service API
To import an application by using the web service API, perform the following steps:
1.
2.
Using the Microsoft .NET client assembly, create a ApplicationManagerService object by invoking its default constructor.
Set the ApplicationManagerService object’s Credentials data member with a System.Net.NetworkCredential value that specifies the user name and password value.
3.
Create a BLOB object by using its constructor. The BLOB object is used to store the LCA file that represents the application to import.
Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the LCA file and the mode in which to open the file.
Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
Populate the BLOB object by assigning its binaryData property with the contents of the byte array.
4.
Import the application by invoking the ApplicationManagerService object’s importApplicationArchiveDocument method and passing the BLOB object. This method returns an ApplicationStatus object that specifies whether the application was successfully imported.
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/importingApps.149.4.html