Everything related to the restful webservices works fine. But i cannot find where to set Parameter-Alias "X-APEX-STATUS-CODE" in the new listener.
title Slug Header IN String
status X-APEX-STATUS-CODE Header OUT Integer
location X-APEX-FORWARD Header OUT String
:status := 201;
:location := 'gallery/' || image_id;
How can i return the status (201) with the new listener because as i said, i cannot find where to set the alias as "X-APEX-STATUS-CODE"You create X-APEX-STATUS-CODE and X-APEX-FORWARD as OUT parameters bound to status and location (for the above code) within your 'POST' handler - I'm assuming that you're using the APEX front-end to do this configuration?
Klaus Linhard wrote:No.
Yes, i create this configuration with APEX 4.2.1 front end but there is no possibilty to set the Alias (as it was in APEX_LISTENER 1...)
Is it the "Source type = Response" which can be used for X-APEX-STATUS-CODE in APEX 4.2.1 ?
Klaus Linhard wrote:Name: X-APEX-STATUS-CODE
Hm, thats very unclear.
I have the following post handler which works (returns the 201)
select 201 into :status from dual;
Bind Variable Name: statusSource Type: Header
Access Method: OUT
Source Type: Response
Parameter Type: IntegerThe terminology has changed in 2.0.x, the term 1.1.x 'Name' => 'Bind Variable Name', 1.1x 'Aliasing' => 'Name'
When i change the Source Type to "Header" then it don't work.
And again the question , where is the Alias "X-APEX-STATUS-CODE " we have in Apex-Listener 1. ?