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.