B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Mime Folder | Summary of Elements in this Folder | wm.tn.mime:getContentType
 
wm.tn.mime:getContentType
Retrieves the value of theContent-Type message header from the specified MIME object.
Input Parameters
mimeData
Object MIME object for which you want to retrieve the Content-Type message header.
Output Parameters
contentType
String A String containing the value of the MIME object's Content-Type header field. Note that this service returns only the media type and subtype portion of this header field's value. It does not return any parameters the value might include. For example, if the message's Content-Type header was:
content-type: text/plain;charset=UTF8
contentType would contain text/plain.
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- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release