Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | MIME Folder | Summary of Elements in this Folder | pub.mime:mergeHeaderAndBody
 
pub.mime:mergeHeaderAndBody
WmPublic. Concatenates the contents of the header and body returned by the pub.client:http service.
You can use this service to reassemble the message into its original form so that it can be used as input to the pub.mime:createMimeData service (or any other service that requires the entire http response as an InputStream).
Input Parameters
headerLines
Document IData object containing the message headers returned by pub.client:http. (The message headers are returned in the lines document inside the header output parameter that is produced by pub.client:http.)
body
Document IData object containing the body of the message returned by pub.client:http. This document must contain the body of the message in one of the following keys:
Key
Description
bytes
byte[ ]. Optional. Body of the message (if pub.client:http returned the body as a byte[ ]).
stream
java.io.InputStream. Optional. The body of the message (if pub.client:http returned the body as an InputStream).
Output Parameters
stream
java.io.InputStream InputStream containing the reassembled tap message.
Usage Notes
Use this service to merge the results produced by pub.client:http to get the original MIME message.
See Also
pub.client:http
pub.mime:createMimeData