Getting the REST Adapter Response
This page explains the REST Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to REST Adapter in the Designer guide.
In addition to the response parameter, each REST Adapter call also provides the complete adapter response as an output object. The adapter response contains the following:
Attribute | Type | Description | Values/Example |
---|---|---|---|
httpStatus | Integer | HTTP status code of the adapter call. | 500 |
headers | Array of HeaderField | HTTP headers of HTTP response. | |
body | Blob | HTTP body of HTTP response. | |
responseObject | Any | Response Object of the REST adapter call.
| |
httpHeaderMap | Map of Entry | Runtime 2020.11 Header information as a map. The map contains arrays of header value strings whereas the header name is the key of the map.
Refer to HTTP Header Support for more information on the standard xUML HTTP headers. |
You can get the response by drawing an object flow from the adapter call to an object of type AdapterResponse as shown below.
Figure: Getting the REST Adapter Response
The object does not necessarily need to be called adapterResponse - you can name it as you like.