Application Integration (On-Premises) : Processing Flat Files : Sending and Receiving Flat Files : Submitting a Flat File to Integration Server via HTTP : Building a Client that Posts a Flat File to a Service
Building a Client that Posts a Flat File to a Service
Regardless of which client you use, if you want to post a flat file to a service through HTTP, you must specify certain information.
To build a client
1. Submit a POST request to the Integration Server.
2. Address the request to the URL of an service (for example, http://rubicon:5555/invoke/purch/postOrder).
3. Set the Content–Type header field to “application/x–wmflatfile.”
4. Contain flat file data in the body of the message. The data must be the only text that appears in the body of the request. Do not assign it to a name=value pair.
The following example describes the values that you set if you use pub.client:http to POST a flat file to a service.
Set this variable...
To
url
This is the URL of the service that you want to invoke.
webMethods services can be invoked via a URL. The format for specifying the URL is http://hostname:port/invoke/ folder.subfolder/service name, where hostname is the name of the machine running the Integration Server, port is the port on which the Integration Server is running, folder.subfolder is the path to the service folder names, and service name is the name of the service to invoke. The following value would invoke the “ProcessFlatFile” flow service located in the “MyFFProcessing” package on the “rubicon” server with port number “5555.” For example,
http://rubicon:5555/invoke/MyFFProcessing/ProcessFlatFile
method
“post”
headers.Content–Type
Name: Content–type
Value: The specific content type for the document (application/x-wmflatfile)

data.string
–OR–

data.bytes
This is the flat file that you want to post.
You also will set any optional HTTP variables, such as authorization information, that are required by your application. The invoked service will have an InputStream ffdata object in the pipeline that contains the flat file data.
Copyright © 2015- 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback