Output parameter mapping
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Output parameters from a procedure or function are mapped to an HTTP response. Elements of an HTTP response include:
- Status code
- Response headers (including cookies and location)
- Response body
Since the status code and response headers of an HTTP response are text, the mapping of an ABL output parameter to a response element is equivalent to mapping from the source ABL data type to text. See Supported output parameter mappings for more information.
A JSON response body in can be mapped to an output parameter in two ways:
- You can map an output parameter that is a ProDataSet (
DATASETandDATASET-HANDLE) or temp table (TABLEandTABLE-HANDLE) to a JSON response body. In this case, the request body is formatted as described in OpenEdge Development: Working with JSON. Also see JSON input and output message formats. - You can map a single CHARACTER or LONGCHAR parameter to a JSON response body. In this case the formatting must conform to the JSON media type.
Runtime errors occur if a mapping is not supported. see Errors and exceptions for more information.