The HTTP Send Response activity sends a reply back
to the sender of an HTTP request.
The following figure shows the
HTTP Send Response activity
sending a reply back to the sender of an HTTP request.
The
HTTP Send Response activity must be used in conjunction
with an
HTTP Receive Request activity in an orchestration as
shown in the preceding figure. If you add a
HTTP Send Response activity
to orchestration, you must select the
Requires a Reply check
box in the
Configure task of the
HTTP Receive Request activity.
By default, compression is not enabled for the HTTP Send Response activity.
For more information, see Compression with the HTTP Send Response activity.
Adding an HTTP Send Response activity to the orchestration
- Create or open an orchestration. A graphical representation of
the orchestration is displayed.
- Select the Activities tab and expand the
HTTP folder.
- Drag the Send Response activity onto the orchestration.
- Select the activity. The Checklist is displayed with the Configure task
active in the properties pane. The properties pane is located below
the graphical representation of the orchestration.
Configuring the activity
- Select the Configure task from the Checklist. The
Configure pane is displayed.
- Configure all the fields and check boxes in this pane as described
in the following table:
Table 1. Field |
Description |
To |
Specifies the HTTP Receive Request activity
associated with this HTTP Send Response activity. During run
time, the associated HTTP Receive Request activity receives
the request from the client and the HTTP Send Response activity
sends the response back to the client. |
Of Type |
Specifies the message type of the HTTP response
- either Text or Binary. |
Use Compression/Decompression |
Specifies if compression/decompression is turned
on or off at the activity level. By default, the Use Compression/Decompression check
box is selected. Clear the Use Compression/Decompression check
box to disable compression for this activity. For more information,
see Compression with the HTTP Send Response activity. |
Mapping the input into the activity
- Select the Map Inputs task in the Checklist. The body input
parameter is displayed in the To Activity pane of the Map Inputs task.
At least one variable must be mapped to the body input
parameter as it is a mandatory parameter. The body input
parameter contains the body of the HTTP response message sent back
to the client.
- To view the optional input parameter in
the To Activity pane of the Map Inputs pane, select from the toolbar menu or right-click in the To Activity
pane and select the Show Optional Parameters option.
If the option is not selectable in the
toolbar menu, click on a node in the Map Inputs pane to make this
option active. The httpheaders input parameter
is displayed.
The following table defines the nodes of the optional
httpheaders input
parameter:
Table 2. Nodes of the httpheaders Input Parameter |
Description |
httpheaders/uri |
Specifies the resource path, for example: /myPath. |
httpheaders/method |
Specifies the type of HTTP response, for example:
POST. |
httpheaders/otherHeaders/headerItem |
Specifies an element that contains a set of
HTTP header parameters as name/value pairs for the HTTP response.
Multiple HTTP parameters can be specified in the HTTP response, so
this is a recurring node. |
httpheaders/otherHeaders/headerItem/name |
Specifies the name of the HTTP parameter. |
httpheaders/otherHeaders/headerItem/value |
Specifies the value of the HTTP parameter. |
- Create a map between the orchestration variable or variables and
the input parameter or parameters. See Creating a map for general instructions on
mapping
Using certificates with Microsoft Internet Explorer
If
you have selected the
HTTPS security option in
the HTTP endpoint, note that Microsoft Internet
Explorer does not recognize a modified certificate and caches the
SSL state. If you modify certificates, you must clear the SSL state.
To clear the SSL state in Microsoft Internet
Explorer:
- From the Microsoft Internet
Explorer toolbar menu, select . The Internet
Options pane is displayed.
- Click the Content tab.
- In the Certificates section, click Clear SSL
State. The SSL Cache Cleared Successfully dialog box is
displayed.
- Click OK and click OK.