Thanks very much, now i understand how it works.
I understand that in 3.20 version i have to change my code to get the same result ?
Thanks
Nuno
You won't have to change code any code in 3.20.
In 3.20 we introduce an improved mechanism for writing RESTful Web Services. To tease you a little, an existing function
FUNCTION add(
a INTEGER ,
b INTEGER
)
RETURNS INTEGER
DEFINE c INTEGER
LET c = a + b
RETURN c
END FUNCTION
can have a few attributes added
FUNCTION add(
a INTEGER ATTRIBUTES(WSParam),
b INTEGER ATTRIBUTES(WSParam)
)
ATTRIBUTES (WSGet, WSPath="/Add/{a}/{b}")
RETURNS INTEGER
DEFINE c INTEGER
LET c = a + b
RETURN c
END FUNCTION
and with one or two more steps, that is now exposed as a RESTful Web Service. However there is no com.HTTPServiceRequest object exposed, so for these there is another technique to get the headers.
I'll post more once 3.20 is released but for know you can join the EAP and evaluate these higher level RESTful Web Services.
Reuben