Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Processing Flat Files | Sending and Receiving Flat Files | Submitting a Flat File to Integration Server via HTTP
 
Submitting a Flat File to Integration Server via HTTP
 
Building a Client that Posts a Flat File to a Service
A client can post a flat file to a service via HTTP. To use this approach, you must have a client that can do the following:
*Send a string of data (a flat file) to the Integration Server using the HTTP POST method.
–AND–
*Set the value of the Content–Type request–header field to “application/x–wmflatfile.”
When the Integration Server receives an HTTP POST request where Content–Type is application/x–wmflatfile, it passes the body of the request as an InputStream to the service specified in the request’s URL. Because most browsers do not allow you to modify the Content–Type header field, they are not suitable clients for this type of submission. Clients that you might use to submit a flat file in this manner include PERL scripts (which allow you to build and issue HTTP requests) or the Integration Server service, pub.client:http.