Take a survey

Developing Applications Using APIs > Managing Processes and Tasks > Retrieving Form Data from Tasks > Retrieving form data from tasks using the web service API

Retrieving form data from tasks using the web service API
To retrieve form data from tasks by using the web service API, perform the following steps:
1.
2.
Using the Microsoft .NET client assembly, create a TaskManagerServiceService object by invoking its default constructor.
Set the TaskManagerServiceService object’s Credentials data member with a System.Net.NetworkCredential value that specifies the user name and password value.
3.
Get the form used in the task by invoking the TaskManager object’s getFormInstanceForTask method and passing the following values:
A System.Boolean value that specifies whether the task identifier was specified
A System.Boolean value that specifies whether the form identifier was specified
A System.Boolean value that specifies whether to retrieve form data (for this task, specify true)
A System.Boolean value that specifies whether the previous parameter was specified (for this task, specify true)
The getFormInstanceForTask method returns a FormInstance object that contains form data.
4.
Get form data by getting the value of the FormInstance object’s document data member. This data member returns a BLOB instance that contains form data.
Save the data to an XML file by creating a System.IO.FileStream object by invoking its constructor and passing a string value that represents the XML file location.
Create a byte array that stores the data content of the BLOB object. Populate the byte array by getting the value of the BLOB object’s binaryData data member.
Create a System.IO.BinaryWriter object by invoking its constructor and passing the System.IO.FileStream object.
Write the contents of the byte array to the XML file by invoking the System.IO.BinaryWriter object’s Write method and passing the byte array.
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/retrievingTaskData.138.4.html