Running, printing, and viewing a document : Retrieving and viewing data : Requesting a page or range of pages using SelectPage : Retrieving the attachment to a SelectPage response
 
Retrieving the attachment to a SelectPage response
The response to a SelectPage request includes the SelectPageResponse element, a ConnectionHandle to keep the connection open, a MIME boundary and header, followed by the binary attachment.
In SelectPageResponse, PageRef specifies the following properties of the response:
*ContentId specifies that the pages return as an attachment.
*ContentType is text/html when the requested format is DHTML.
*ContentEncoding is binary, meaning that the pages return as binary data.
*Locale indicates the locale in which the user can view the selected pages.
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<SelectPageResponse>
<PageRef>
<ContentId>Attachment</ContentId>
<ContentType>text/html</ContentType>
<ContentEncoding>binary</ContentEncoding>
<Locale>en_US</Locale>
</PageRef>
<ConnectionHandle>u7whmBpUho+tg5MUY=</ConnectionHandle>
</SelectPageResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
67
 
--MIME_boundary
Content-Type: text/html
Content-Transfer-Encoding:binary
Content-ID:Attachment
806
 
<HEAD>
<META NAME="generator" CONTENT="Actuate">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=UTF-8">
<LINK REL=STYLESHEET TYPE="text/css"
 
--MIME_boundary--
0