B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc.ff:registerContentTypes
 
wm.tn.doc.ff:registerContentTypes
Trading Networks uses this service to register those content types that are handled by the flat file content handler. This service is invoked when the WmTN package is loaded.
Input Parameters
None.
Output Parameters
None.
Usage Notes
By default, the flat file content handler processes only data with a content type of “text/plain.” To modify the set of content types that the flat file content handler processes:
1. First, change the value of the tn.ff.contenttypes property in the <SERVER_HOME>/packages/WmTN/config/properties.cnf file.
2. Next, reload the WmTN package or restart Integration Server
For example, set the property as follows.
tn.ff.contenttypes=text/special,application/x-my-app
When the WmTN package is reloaded, the flat file content handler processes all incoming data with a content type of text/special or application/x-my-app.
Note: If you change the value of the tn.ff.contenttypes property and invoke this service without reloading WmTN, the change will not take effect.

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