Module for ISO_8583 9.6.June 2016 | Understanding and Using webMethods ISO8583 | Installing and Using Module for ISO_8583 | Configuring webMethods Module for ISO_8583 | Configure HTTP client | Send ISO_8583 messages using Integration Server
 
Send ISO_8583 messages using Integration Server
When using HTTP, the client must include the following logic:
*Submit a POST request to Integration Server.
*Address the request to the URL of the service that is to process the ISO_8583 message (for example, http://localhost:5555/invoke/wm.estd.iso8583.tn.service/receive)
*In the HTTP request header, set the value of the content type field to text/plain.
*In the HTTP request header, set the value of the schemeID to the namespace of the scheme. This is optional.
*Put the ISO_8583 document to process in the body of the message. The document must be the only text that appears in the body of the request.
Most browsers do not allow you to modify the content type header field and so, they are not suitable clients for this type of submission. Clients that you might use to submit an ISO_8583 message in this manner include PERL scripts (which allow you to build and issue HTTP requests) and the webMethods pub.client:http service. The following table describes the values that you provide for the pub.client:http service to POST an ISO_8583 message to Integration Server:
Parameter
Description
url
A string that contains the URL of the service that you want to invoke to process the ISO_8583 message. For example, http://localhost:5555/invoke/wm.estd.iso8583.tn.service/receive
method
Specify post.
loadAs
A string that contains the data type of the input data source. Specify either bytes or stream.
*bytes if the document data source is a byte[].
*stream if the document data source is an InputStream.
data/string
A string that contains the ISO_8583 message that you want to post.
headers
An IData object that contains the following:
*NameSpecifyContent-type
*Value The content type for the document, for example, text/plain.
*NameSpecify schemeID.
*ValueSpecify the namespace of the scheme.
The client can also set other optional HTTP variables, such as authorization information, that are required by your application. For a complete description of the pub.client.http service, see the webMethods Trading Networks Administrator’s Guide for your release.