HTTP connectors > HTTP connector scenarios > Responding with processed data via a Job Resource connector

Responding with processed data via a Job Resource connector
The HTTP(S) connector enables the StreamServer to act as an HTTP server that receives and processes input from an HTTP client. You can configure the StreamServer to automatically return processed output to the client.
If the client expects the response, for example a PDF file, to be presented in a web browser via an ActiveX plug-in, the response must be temporarily stored at the server side.Click to enlarge
1
2
3
An XMLOUT Process generates HTML output with information specifying the location of the processed data. This output is sent back to the client via the HTTP Response and HTTP connectors.
4
Specifying the URI to the temporary storage
1
2
In the Job resource URI field, enter /JobResource.
Fetching the URI for the temporarily stored output
Add the following After Process script to the PageOUT Process:
$GetJr = GetJobResourceURI();
Note:
Configuring the XMLOUT Process
The XMLOUT Process generates HTML output that uses the <embed> tag to specify the location of the processed data:
<embed id="ID" height="X%" width="Y%" src="Variable"/>
Example 27
Elements and attributes:Click to enlarge
Output
<?xmlversion="1.0">
<HTML>
   <Body>
      <embed id="id1" height="100%" width="100%" src="$GetJr"/>
   </Body>
</HTML>
 
Configuring the Job Resource connector
1
2
Click the Driver icon and select Device > PDF.
3
invoice.pdf
application/pdf
Yes
30
Minute
No
No
Configuring the HTTP Response output connector
1
2
In the Content-type field, enter text/html.
OpenText StreamServe 5.6 Updated: 2013-03-01