B2B Integration 10.4 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Creating Clients that Send EDI Documents to Trading Networks | Sending EDI Documents to Trading Networks via HTTP/S | Example of Input Parameters for the pub.client:http Service
 
Example of Input Parameters for the pub.client:http Service
The following example describes the values that you would set when using the pub.client:http service to post an EDI document to the wm.tn:receive service. For a complete description of the pub.client:http service, see the webMethods Integration Server Built-In Services Reference for your release.
Set this parameter...
Of data type...
To...
url
String
The URL for the wm.tn:receive service, for example, http://rubicon:5555/invoke/wm.tn/receive.
In this example, the wm.tn:receive service on the "rubicon" server with port number "5555" would be invoked.
method
String
post
loadAs
String
The data type of the input data source. Specify one of the following:
*bytes. The document data source is a byte[]
*stream. The document data source is an InputStream
data/string
String
The EDI document that you want to post.
headers
Document
An IData object that contains the headers that you want to set.
Specify a key for each header field that you want to set. The key’s name represents the name of the header field, for example, Content-type.The key’s value represents the value of that header field, for example, application/EDIstream.
Also, the client can set any optional HTTP variables, such as authorization information, that are required by your application.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release