REST

The REST component communicates with the HTTP server by using specified http method.
When transporting using a SSL protocol, the certificates registered by a management console are used, then the data will be transported following a public key infrastructure.

Stream Information

InputFormatBinary,Text,HTML,ParameterList,CSV,FixedString,MIME,XML
Number of Inputs1
Description If HTTPMethod != GET or DELETE, It becomes transmission data.
if GET or DELETE, it is not used. In the case of a ParameterList input stream, each parameter is sent as a separate form field.
OutputFormatXML,CSV,FixedLength,Text,HTML,Binary,MIME

Output Stream Variables

NameData TypeDescription
StatusCodeintStatus code of HTTP response.

Component Properties

NameData TypeMappingDescription
UseConnectionboolean- Specifies if the Connection property is used to specify the HTTP server information.
true [true] - Uses Connection specified connnection.
false [false] - Uses the information under ConnectionInfo.
Connectionconnection- If UseConnection=true, specifies the HTTP connection to use. The connections are defined in the Connection Pane of Flow Designer or the Flow Service Management Console.
ConnectionInfogroup- The HTTP server connection property settings' place holder displayed when UseConnection is set to false.
URLstringIn & Out Specifies the URL of the HTTP server.
The full URL in the form "http(s)://..." must be specified. If UseConnection=false, this is used.
URLEncodingchoiceIn & Out Specifies the character encoding set in the Body. if the input stream is a ParameterList.
If UseConnection=false, this is used.
TimeoutintIn & Out Specifies the timeout value, in seconds, for connection, communication with the HTTP server.
If UseConnection=false, this is used.
BasicAuthgroup- The authentication properties' place holder if UseConnection=false, this is used. Supporting authentication is as follows.
  • Basic authentication
  • Digest authentication
  • WSSE authentication
UsernamestringIn & Out Specifies the username to use if the server performs authentication.
If UseConnection=false, this is used.
PasswordpasswordIn & Out Specifies the password to use if the server performs authentication.
If UseConnection=false, this is used.
UseProxyboolean- Specifies whether the proxy server settings defined in the Flow Service Managenemt Console are to be used.
If UseConnection=false, this is used.
true [true] - Use the proxy server
false [false] - Do not use the proxy server
PathstringIn & Out Specifies the URL location from which to Get data. This value is appended to the end of the URL defined by the selected Connection. If UseConnection=false, this is used.
HTTPMethodchoice- Specifies the HTTP method to use for the request. Other methods can use if you input a method name.
GET - Uses GET method.
POST - Uses POST method.
PUT - Uses PUT method.
DELETE - Uses DELETE method.
HTTP bodychoice- Specifies the HTTP message body.
Input Stream [Stream] - Input Stream
None [None] - No Body
HTTPVersionchoice- Specifies the HTTP version to use for the request. When HTTP/1.1 , component sets Connection:close header field.
HTTP/1.0 - Uses HTTP/1.0
HTTP/1.1 - Uses HTTP/1.1
RetryCountintIn & Out Number of times to retry the request if it fails. If no retry attempts are to be made, set this value to zero ("0").
RetryIntervalintIn & Out Number of seconds to wait between retry attempts.
FollowRedirectsboolean- Specifies if redirects or not when the server returns rediretion information.
true [true] - Any redirections returned from the server are followed automatically.
false [false] - redirections are not followed.
URLParameterscategoryIn    Any parameters present in the URLParameters category are set in the URL query and sent with the HTTP request.
RequestHeaderscategoryIn    Any parameters present in the RequestHeaders category are set in the HTTP header and sent with the HTTP POST request.
ResponseHeaderscategoryOut When the response is received from the server, any HTTP header whose name matches that of a parameter in the ResponseHeaders category has its value copied to the corresponding ResponseHeaders parameter.

Transaction

CommitDo nothing
RollbackDo nothing

Exceptions

TypeParameterStream for error handling flowError
Code
Description
Exception None This component's input stream - The specified Connection could not be found.
- The HTTP server could not be contacted.
HTTPException
No.NameDescription
1HTTPStatusLineThe HTTP Status-Line returned by the server.
2HTTPBodyThe HTTP Response-Body returned by the server.
The MIME content contained in the HTTP response returned by the server.Status code of HTTP responseThe HTTP server returned an error.

Difference between REST and HTTPGet(or HTTPPost)

This component contains all functions of HTTPGet and the HTTPPost component, and can substitute it. The difference point with those components is as follows.

The HTTPPost component can completely replace by the "Replace component" of right click menu, but the HTTPGet component that uses input stream is necessary to set the input stream field to the URLParameters property.

Cancel of the flow

When flow is canceled, the flow usually aborts after the execution of that component is ends. However, the execution of this component is forced to be ended, then it aborts.

URL Encoding

For example, if the "param" field of PrameterList is set to "(abc)" and URLEncoding is set to UTF-8, the POST data will be as follows.
	param=%28abc%29
	
For further information on URLEncoding refer to RFC1738.

Using Connection

When not using connection, all the information must be specified in the component. But, URL can be generated with the value of Path property and the basic information defined in the connection. For example, URL of the connection definition is set to :

	http://SERVERNAME
	

and, the Path property is set to "/page1.html", then requests to

	http://SERVERNAME/page1.html
	


When multiple HTTP components connect to the same web server and following condition is met, it is convenient to use connections.

Topic

The test of HTTP request

Click the "Execute test" from right click menu of this component, or double-click this component, then the test dialog is displayed.

The test dialog consists of the following elements.

Notes of test