Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Cloud | Built-In Services | Built-In Services | mergeHeaderAndBody
 
mergeHeaderAndBody
Concatenates the contents of the header and body mapped to the input.
You can use this service to reassemble the message into its original form so that it can be used as input to the 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. (The message headers are returned in the lines document inside the header output parameter).
body
Document IData object containing the body of the message. This document must contain the body of the message in one of the following keys:
Key
Description
bytes
byte[ ] Optional. Body of the message.
stream
java.io.InputStream Optional. The body of the message.
Output Parameters
stream
java.io.InputStream InputStream containing the reassembled tap message.
Usage Notes
Use this service to merge the Headers and Body to get the original MIME message.