Running, printing, and viewing a document : Retrieving and viewing data : Retrieving embedded data and style sheets
 
Retrieving embedded data and style sheets
Use GetEmbeddedComponent to retrieve:
*Static data, such as an image in a document.
*Dynamic data, such as an embedded URL.
*A style sheet, the template from which Actuate software builds a report. A style sheet returns in cascading style sheets (CSS) format.
Use the Operation element to specify what to retrieve, as shown in the following example:
<SOAP-ENV:Body>
<GetEmbeddedComponent>
<ObjectId>39</ObjectId>
<Operation>GetDynamicData</Operation>
<ComponentId>520</ComponentId>
<ScalingFactor>57</ScalingFactor>
</GetEmbeddedComponent>
</SOAP-ENV:Body>
This request returns the component as an attachment, along with an EmbeddedRef element showing the type of component. The image follows the response as an attachment.
<SOAP-ENV:Body>
<GetEmbeddedComponentResponse>
<EmbeddedRef>
<ContentId>Attachment</ContentId>
<ContentType>image/jpeg</ContentType>
</EmbeddedRef>
</GetEmbeddedComponentResponse>
</SOAP-ENV:Body>