I’m developing an FTP polling service that will receive EDI, XML etcfrom different FTP sites. All these files should immediately be received and recognized in TN.
This is working fine as for EDI and other formats we have an Unknown Document handler in TN that will resubmit via HTTP with correct content type.
The same could be done for XML, but it seems strange that we already have the data in the system inside a flow and need to route it via HTTP again into TN only to specify the content type. Also the required port etc. may differ from development to production.
Is there a more elegant way to do that, ie. to use wm.tn:receive directly and specify a content type there?