[progress Communities] [progress Openedge Abl] Forum Post: Classic / Pacific Rest Removing...

  • Thread starter Thread starter carl.williams
  • Start date Start date
Status
Not open for further replies.
C

carl.williams

Guest
Is it possible to create a response without the outer response block and without opcOut which is a longchar? If I was working with a dataset I could user the "no outer block" option with write-json likewise I would not mind using a JSON Object and passing this as the response. I know I could use the new webspeed features to support REST but I wondered if it were possible with REST outside of webspeed? Thanks in advance. { "response": { "opcOut": { "products": [ { "Product": "1", "Description": "Hello world!" }, { "Product": "100000", "Description": "Chicken Nuggets (2 lb)" }, becomes: { [ { "Product": "1", "Description": "Hello world!" }, { "Product": "100000", "Description": "Chicken Nuggets (2 lb)" } ]} PROCEDURE action: DEFINE INPUT PARAMETER ipcAction AS CHARACTER NO-UNDO . DEFINE INPUT PARAMETER ipcIn AS LONGCHAR NO-UNDO . DEFINE OUTPUT PARAMETER opcOut AS LONGCHAR NO-UNDO . DEFINE OUTPUT PARAMETER opiResponse AS INTEGER NO-UNDO INIT 200 .

Continue reading...
 
Status
Not open for further replies.
Back
Top