Try OpenEdge Now
skip to main content
Web Services
Creating OpenEdge REST Web Services : REST Applications : Parameter mapping : Output parameter mapping
 
Output parameter mapping
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 (DATASET and DATASET-HANDLE) or temp table (TABLE and TABLE-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.