Reading data from the REST Web Service

Hi All,

We are calling a REST Web Service via the classic 4GL code with "Func EXEC_REST_WS"

I am using a simple GET to retrieve information. 

The parameters that are described in the Online Help (link here) make use of a Returns parameter.

When I use the code without that parameter specified it works correctly. It returns the whole result as a JSON string. 

Result of Header: {"cache-control":"no-cache","pragma":"no-cache","content-length":"410","content-type":"application/xml; charset=utf-8","expires":"-1","server":"Microsoft-IIS/8.5","status":"Success..... }

When I use the code and populate the Returns parameter, it returns nothing in the content. 

Result of Header: {"statusCode":"200","message":"OK","content-type":"application/json","content-length":"0"}

I've double checked everything but cannot find any answers.

Any assistance will be greatly appreciated. 

Thanks