www.krengeltech.com

RXS_getUrlVar

From Wiki

User Guide

Contents

Description

Some web services may require their consumers to pull variables off of the URL. This subprocedure will simplify that process. Here is an example URL with variables (say name value pair):


http://mysite.com/rxs/mywebservice?customer=1&code=3
  • customer is a variable with a value of 1.
  • code is a variable with a value of 3.

Prototype

     D RXS_getUrlVar   pr         32767a   varying
     D  pVar                        300a   value

Parameters

pVar
Specify the name of the variable you want the value for (e.g. customer from the above URL example)
Return Parameter
Will contain the value of variable specified in pVar.
Notes
Previously, this API failed to return variables where the variable length was a single character. This was fixed in v2.30.

Return value

None.

Notes / Examples

None.