B2B Integration : Trading Networks Built-In Services Reference : Mime Folder : Summary of Elements in this Folder : wm.tn.mime:resetMimeHeader
wm.tn.mime:resetMimeHeader
Resets all headers on this MIME object and optionally adds new headers.
Input Parameters
mimeData
Object The MIME object containing the headers that you want to reset.
mimeHeader
Document (optional) The header fields that you want to add to the MIME object. Key names represent the names of the header fields. The values of the keys represent the values of the header fields.
For example, if you want to add the following header fields:
X-Doctype: RFQ
X-Severity: 10
You would set the values of the keys of the mimeHeader as follows:
*Value of key X-Doctype as RFQ
*Value of key X-Severity as 10
Be aware that the wm.tn.mime:writeToStream service automatically inserts the following MIME headers when it generates the MIME message:
Message-ID
MIME-Version
Content-Type
Content-Transfer-Encoding
If you set these values in mimeHeader, the wm.tn.mime:writeToStream service overwrites them at run-time.
Output Parameters
None.
Usage Notes
This service is not compatible with those in the pub.mime folder. The MIME objects that the pub.mime:createMimeData service creates will not work with this service.
Copyright © 2016- 2017 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback