Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Resource Templates : need to return json response from POST, PUT and DELETE

mwrfFeb 14 2011 — edited Jul 4 2011
Hi,

I'm writing an application that requires that {success:true] is returned from POST, PUT and DELETE requests
in the response body.
The client side framework I'm using does not read the HTTP status codes.

I know that I can return anything in the header but this won't work for me, I need to respond with JSON.
I have tried the following,

Handler for DELETE:
Type = PL/SQL Block

begin
delete from debug
where test =
;
select 'true' success from dual;
end;

AND

Handler for DELETE:
Type = Query

begin
delete from debug
where test = 
;
select 'true' success from dual;
end;


Both throw 500 errors. Is there anything I can do here to get this to work?

Thanks in advance,

Edited by: mwrf on Feb 14, 2011 2:00 AM

Edited by: mwrf on Feb 14, 2011 2:01 AM

Comments

Srini Chavali-Oracle

Win Home versions are not certified for Oracle database installs - Oracle Database Preinstallation Tasks

so expect such issues. Is there a reason you cannot use a supported OS version ?

After powering up the laptop, is the database up and running ? You will have to start up the database and listener before you can access the EM Express page - Getting Started with Database Administration

HTH
Srini

user6880652

Hi Srini,

I have also installed Weblogic 12C, and the Weblogic em is working fine as expected. Not sure why the issue comes with Oracle EM only

Possibly because you are using an unsupported version of the OS

Srini

TSharma-0racle

user6880652 wrote:

I installed 12C Enterprise on my laptop that has Windows 7 Home .The installation process went fine and I was able to connect to http://localhost:5500/em (even used). But, once I powered down my laptop and brought it back up the next day, I couldn't connect ('the page cannot be displayed'). So, I uninstalled oracle and then tried the process again. I could initially connect to 5500/em but after rebooting or powering down the machine, I could not find http://localhost:5500/em.

Can anyone direct me to some specific documentation with this or has anyone conclusively solved this problem to the end????? Thanks for any help.

Shouldn't you be in connecting to HTTPS instead of HTTP(http://localhost:5500/em) OR it is just a typo?

What if you try

https://localhost:5500/em

1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 1 2011
Added on Feb 14 2011
3 comments
207 views