com.HttpServiceRequest.getUrlQuery

Takes a dynamic array of RECORD of two strings and fills that array with the decoded query string of an HTTP service request.

Syntax

getUrlQuery(
   query RECORD)
  1. query defines a record with the following structure:
    DEFINE query DYNAMIC ARRAY OF RECORD
          name STRING,
          value  STRING
    END RECORD
    The WSHelper library provides the WSHelper.WSQueryType variable for your use. See WSHelper variables and records.

Usage

Takes a dynamic array of RECORD of two strings and fills that array with the decoded query string of an HTTP service request. If there is no query string, the dynamic array size will be zero (0).

In case of error, the method throws an exception and sets the status variable. Depending on the error, a human-readable description of the problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).

If the given array is not of the expected type, it raises exception -15535.

If there is an encoding issue, the status is set to -15552. No exception is raised. You can process the query parts that do not have any UTF-8 conversion issues.