Property | Description |
---|---|
Protocol | Supports secure and unsecure communication over SSL. Supported protocols are: • HTTP (default) • HTTPS • HTTPS (Debug) HTTPS requires the use of a trust store. HTTPS (Debug) allows establishment of a secure connection to a server which doesn't have a valid certificate (self-signed, signed by unrecognized certificate authority, etc.) |
Authentication | Supported server Authentication: • None (default) • BASIC • DIGEST • NTLM • OAuth2 Bearer Note: When you use BASIC as an Authentication value, “Basic” is added in the title case with a trailing space followed by encoded User ID and Password string in Authorization HTTP Header. |
Message Encoding | Text encoding to be used in the body of the source and target DJMessage objects. The available options are: • UTF-8 • ISO-8859-1 |
Use Base64 Encoding | Indicates whether binary source messages (like DJMessage attachments) must be encoded in Base64 before being sent. Select from: • No (default) • Yes |
HTTP Username | The username that must be specified when the Authentication property is set to Basic, Digest, or NTLM. |
HTTP Password | The password to authenticate the HTTP Username. |
Domain | The domain that must be specified when the Authentication property is set to NTLM. |
Bearer Token | The Bearer Token that must be specified when the Authentication property is set to OAuth2 Bearer. |
Proxy Server | The host name or IP address of the proxy server. |
Proxy Port | The port on which the proxy server is listening. |
Proxy Username | The username for the proxy server, where required. When the authentication type is NTLM, you must also set the Domain property. |
Proxy Password | The password to authenticate the Proxy Username. |
Keystore File | The keystore file that the REST API Invoker must provide to the server during initial SSL handshake. This property appears only when the Protocol property is set to HTTPS. Note: The certificate or the certificate chain must be installed into a local java keystore. |
Keystore Pswd | The keystore password for the keystore file. This property appears only when the Protocol property is set to HTTPS. |
Truststore File | The full path to the trust store certificate. The truststore is a java keystore which is used by the client to match against the signing authorities of certificates presented by servers to which you are attempting to establish secure connections. This property appears only when the Protocol property is set to HTTPS. |
Truststore Pswd | The password to access the specified trust store. This property appears only when the Protocol property is set to HTTPS. |
Action | Description |
---|---|
Execute | Executes the supported actions listed in Supported Action Properties. |
Disconnect | Closes an existing database connection and performs any clean up actions if required. |
Action | Property | Description |
Execute | SourceMessage | Body of HTTP request. If HTTP method is GET or HEAD, this may be treated as an optional parameter. |
Execute | TargetMessage | Contains the HTTP response information. |
Action | Property | Description |
---|---|---|
Execute | Design | Click within the field and then click to open the Rest API Invoker 3 Configuration window. After configuring the values in this tool, save the configuration. |
Execute | HTTP Method | HTTP Method to be executed: • POST (default) • GET • HEAD • TRACE • OPTIONS • PUT • DELETE • PATCH Note: For more details, see the HTTP 1.1 specification. |
Execute | Message Encoding | Text encoding to be used in the body of the source and target DJMessage objects. The available options are: • UTF-8 • ISO-8859-1 Note: The Message Encoding component property sets the default global message encoding for every instance of that component. The step Message Encoding property sets the message encoding for that specific step. If you leave it blank, the step will use the component's global encoding. However, if you select an encoding, the step message encoding will be used over the global encoding. Thus the step property allows you to override the global encoding in a step. |
Execute | URL | The endpoint of the current REST session. |
Execute | URL Query String | Allows a query string or additional URL information to be appended to the URL. The URL is appended in the following manner: URL + URL Query String + URL-Encoded String. URL-Encoded String is taken from the Source Message when Send Source Via == URL. Any value used within this option is read literally and must already be URL-Encoded. |
Execute | Headers | HTTP request headers. Formats: key1:value1;key2:value20;key2:value21 ..... The following is a header example. Here, “Authorization” is the key and “Bearer...” is the value: Authorization:Bearer d7443b7f11508f3dedb37c9911e2e231d418a969b4703141eddc1468b367dd0a At run-time, the input message can define message properties start with 'H.' for header. |
Execute | Cookies | HTTP cookie. Formats: key1=value1;key2=value2 ..... The following is a cookie example. Here, “test_cookie” is the key and “cookie_value” is the value: test_cookie:cookie_value At run-time, the input message can define message properties 'Cookie'. |
Execute | Send Source Via | Specifies whether the source DJMessage is sent in the HTTP body or appended to the URL and any URL query string (as a URL-encoded string) that has been specified. The options are: • BODY • URL The default value is BODY |
Execute | Content Type | The content type for the header of an HTTP request. Provided types are: • text/xml (default) • text/html • text/plain • application/json • application/x-www-form-urlencoded • application/xml • multipart/form-data • application/atom+xml • application/octet-stream • application/svg+xml • application/xhtml+xml • wildcard Note: You can also type any other content type in this text box. |
Execute | SOAP Action | Sets the SOAPAction header in the HTTP request, when required. This value is required only when connecting to strongly typed web services. |
Execute | Read Timeout (secs) | The amount of time in seconds to wait for a response. The default value is 60. If required, you can change this value. |
Execute | Connect Retry Count | The number of retry attempts to make when an exception occurs. If the value is negative, the retry attempt default is zero. The Connect Retry Delay property value is used between retry events. Note: If the method to be executed is GET, HEAD, TRACE, or OPTIONS, multiple retry attempts are made regardless of any exceptions. If the method to be executed is POST, PUT, or DELETE, multiple retry attempts are made only when the following exceptions occur: • NoHttpResponseException • ConnectTimeoutException • UnknownHostException • ProtocolException • Connection is dropped before the request is fully sent to the server The default value is 5. |
Execute | Connect Retry Delay (ms) | The time (in milliseconds) to wait between retry attempts. The default value is 1000. |
Execute | Log HTTP Headers | When set to TRUE, all HTTP request and response headers are written to a process log file. Default is TRUE. |
Execute | Read Source File | Allows you to specify a file that you want to post. |
Execute | Read Source Folder | For multipart post requests, specify the folder location that contains the file that is to be uploaded. By default, all of the files in the specified folder are added to the request. To request specific files, you can add the following to a Script step before the invoker is called: requestMsg.properties("F.<filename>") = "<filepath>" You must add this line for each file you specify. See DJMessage Options for more information. |
Execute | Write Source File | Write the HTTP request to the specified file. If not provided, the content of the source DJMessage will not be copied to a file |
Execute | Write Response File | Write the HTTP response to the specified file. If not provided, the response is written to the target DJMessage. |
Code | Name | Description | Possible Reason |
---|---|---|---|
0 | OK | No error. Used for all informational messages. | - |
50 | UNSPECIFIED | An unexpected error occurred. Displayed for all run-time errors. | - |
4 | READ ERROR | A file, input stream, or web service response could not be read. | - |
27 | CLOSE ERROR | A file or input stream could not be closed. | - |
20 | BAD FILE TYPE | The specified directory or file does not exist. | - |
11 | RECORD TOO BIG | A file or input stream is too large to be read by the invoker (the maximum size is 2147483647 characters). | - |
34 | INVALID | An option is invalid. | The invoker was redirected to an invalid location. For example, no location header was specified. |
44 | NOT SUPPORTED | An option is not specified. | The invoker could not encode a binary attachment to base 64 due to a charset error. |