Rest Action

Invokes a REST service with support for SSL encryption, security certificates, multipart messages, and other REST capabilities.

Properties

Action Type

Sets the kind of HTTP action to perform against the REST service. Valid actions include GET, POST, PUT, and DELETE.

Base URL

Sets the base URL that defines how the REST service is accessed and used.

Query Parameters

Sets the optional input string data that are used as query parameters to the REST service.

Request Content Type

Sets the optional "Content-Type" header in the HTTP request to the REST service. Typical content types include "text/plain" and "text/xml".

Request Entity

Sets the optional request entity to be sent with an HTTP POST or PUT action.

Response Type

Sets the type of the response from the REST service.

The RestAction API has two variants:

public void setXpathResponseType(Class xpathResponseType);

which is used in Java APIs; and

public void setXpathResponseTypeAsString(String xpathResponseType);

Which is used in the Designer.

Username and Password

Sets the optional password used to access the REST service, assuming the service is secured with basic authentication.

Preemptive Authentication

Sets whether the client should send an authentication request even before the server gives a 401 response.

Interactive Authentication

Sets whether the client should interactively prompt for credentials should it receive a 401 response.

XPath Expression

Sets the optional XPath expression used to query the response from the REST service.

XML Namespaces

Sets the optional XML namespaces for resolving an XPath query. The key to the map is the namespace prefix. The corresponding value is the target namespace.

XPath response type

Sets the optional type of the response from an XPath query.

SSL

Sets whether the client should use SSL for communication.

Body Parts

Sets the body parts, commonly called file attachments, that are set in a multipart HTTP request to the REST service. The key to each property is the name of the body part. The corresponding value is a filename that references the contents of that body part.

HTTP Headers

Sets the optional headers set in the HTTP request to the REST service. Typical headers include "User-Agent: Flux Scheduler/7.10". The User-Agent header contains information about the user agent originating the request.

Result Properties

result

The response from the REST service.

responseCode

HTTP response code.

responseStatus

HTTP response status.

type

HTTP response media type.

 
 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.