|
|
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.
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. Create an anonymous ActionScript object to contain the content passed to LiveCycle ES. It should contain the following elements:
• 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.
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