How to send a query string as a parameter to a Restful Service using the WebFOCUS Rest adapter


Technique

Product: WebFOCUS Designer
Release: 8206
Primary OS: Windows
Solution Date:

Problem

How to send a query string as a parameter to a Restful Service using the WebFOCUS Rest adapter.

Solution

When passing a query string to a Rest call via the WebFOCUS Rest adapter during Create Synonym time, you need to be sure to properly encode characters that may be ignored or encoded improperly. For example: when creating a synonym and passing the QueryString value, the spaces need to be encoded:

Service URL Parameters
----------------------------------------------------------
QueryString=select%20*%20from%20table

---------------------------------------------------------

Where %20 is the html encoded space.