Application Integration (On-Premises) : Processing Flat Files : Sending and Receiving Flat Files : Submitting a Flat File to Integration Server via an E-mail Message : Requirements for Submitting a Flat File Document via an E-mail Message
Requirements for Submitting a Flat File Document via an E-mail Message
To submit a flat file to the Integration Server via an e–mail message, your client program must specify certain information.
To submit a flat file via e-mail
1. Put the flat file in an e–mail attachment.
2. Set the e–mail’s Content–Type header to “application/x–wmflatfile.”
3. Specify the name of the service that will process the file in the e–mail’s subject line. If you leave the subject line empty, the document will be processed by the global service if one is defined or, if not, by the default service assigned to the e–mail port (if one has been assigned). For more information about specifying the port’s default service, see webMethods Integration Server Administrator’s Guide.
The service that will process the flat file must take an InputStream as input in the ffdata variable.
The following example describes the values that you would set if you used pub.client:smtp to e-mail a flat file to a service. For more information about using this service, see the webMethods Integration Server Built-In Services Reference.
Set this variable...
To...
to
A String specifying the e–mail address monitored by the Integration Server’s e–mail port.
subject
A String specifying the fully qualified name of the service to which the Integration Server will pass the attached document. For example,
orders:ProcessPO
If you do not specify subject, the e–mail port invokes its default service (if one has been assigned to it).
from
A String containing the e–mail address to which the results of the service will be sent.
attachments.contenttype
The specific content type for the document (“application/x–wmflatfile”).
attachments.filename
A string specifying the fully qualified name of the file containing the flat file.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback