Take a survey

Invoking LiveCycle ES > Invoking LiveCycle ES Using LiveCycle Remoting > Invoking services > Invoking a service using LiveCycle Remoting

Invoking a service using LiveCycle Remoting
You can invoke a service using LiveCycle Remoting. For example, to invoke the Repository service using LiveCycle Remoting, perform the following steps:
1.
Create an mx:RemoteObject instance through either ActionScript or MXML.
2.
Set up a ChannelSet, add a channel to communicate with the LiveCycle ES server, and associate it with the mx:RemoteObject instance.
3.
4.
Populate an mx.rpc.livecycle.DocumentReference instance with the document to be added to the repository.
5.
Create a Resource object. You can use an ActionScript anonymous object that contains the following elements:
6.
dataDocument: Holds the mx.rpc.livecycle.DocumentReference instance.
mimeType: Specifies the MIME type. For example, application/vnd.adobe.xdp+xml.
7.
Add the document to the LiveCycle ES repository by using LiveCycle Remoting to invoke the Repository service’s writeResource method and passing the following values:
The Resource object that was created.
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/invokingLCRemoting.25.11.html