Post/updated how stuff with ADR 3.0 with the ORDS_SERVICES package updated

Hello

I'm creating a rest api using ADR 3.0 and the ORDS_SERVICES package. ADR is deployed in Weblogic 12 c. (Do not use APEX)

I am able to receive calls to retrieve JSON objects, but when I try to do a POST method to update or deal with something in the database, it does not work.

I get a 500 internal server error.

I can't find any example on the web or any good documentation on the package.

What I am doing wrong?

Here is my code.

I spent a json like this object

{'empno': 7369, 'ename': 'SMITH44', 'job': "clerk", "Bishop": 7902, "hiredate": "1980-12 - 17 T 05: 00:00Z sal ',' ': 800,"comm": null,"deptno": 20"}

declare

number of l_moduleId;

number of l_templateId;

number of l_handlerId;

number of l_parameterId;

Start

ords_services.delete_module (p_name = > 'emp_module');

l_moduleId: = ORDS_SERVICES.create_module (p_name = > 'emp_module',)

p_uri_prefix = > ' / emp_module',

p_items_per_page = > 10,

p_status = > "PUBLISHED."

p_comments = > 'Comments on emp_module Module');

l_templateId: = ORDS_SERVICES.add_template (p_module_id = > l_moduleId,)

p_uri_template = > ' / postemp / ',.

p_priority = > 0,

p_etag_type = > 'HASH ',.

p_etag_query = > null,

p_comments = > ' POST emp emp /');

l_handlerId: = ORDS_SERVICES.add_handler (p_template_id = > l_templateId,)

p_source_type = > "plsql/block" ,

p_method = > 'MESSAGE ',.

p_items_per_page = > null,

p_mimes_allowed = > null,

p_comments = > 'Comments on Manager' ,

p_source = > ' declare

number of lCount;

Start

Select count (1)

in lCount

from emp where empno = 73369;

If lCount = 0 then

Insert into emp3 (empno, ename, job, mgr, hiredate, sal, comm, deptno)

values (: empno,: ename,: job,: mgr,: hiredate,: sal: comm: deptno);

on the other

emp3 update

the empno = value: empno,.

Ename =: ename,

= job: job,.

Mgr =: mrg

HireDate =: hiredate,

SAL =: sal,

Comm =: Comm.,

DEPTNO =: deptno)

where empno =: empno;

end if;

/ *: status: = 201; * /

end ;' );


end;

Hi 1054397,

1054397 wrote:

Please change your login username of "1054397" to something meaningful. Reference: Video tutorial how to change username available

I'm creating a rest api using ADR 3.0 and the ORDS_SERVICES package. ADR is deployed in Weblogic 12 c. (Do not use APEX)

I am able to receive calls to retrieve JSON objects, but when I try to do a POST method to update or deal with something in the database, it does not work.

I get a 500 internal server error.

For debugging this problem, you face on ADR:

I can't find any example on the web or any good documentation on the package.

What I am doing wrong?

I would like to know where did you get/reference documentation for the API in PL/SQL ORDS_SERVICES as ADR 3.0 Oracle Documentation says nothing about it.

Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/develop.htm#BABDCBJC

In addition, for the basic CRUD (create retrieve Update Delete), there is new feature introduced in ADR 3.0 which automatically activates the REST API for these operations on the tables REMAINS active. For more complex operations, you can use the PL/SQL block based RESTful Web services.

Check out the blog series conducted by Gordon Smith on 'Auto REST Enablement"ADR 3.0 functionality:

Also the Oracle Documentation for ADR 3.0 for the same function:

Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/develop.htm#BABHAFHH

Kind regards

Kiran

Tags: Database

Similar Questions

  • Error1722 problem with the windows package install.

    I try to install the Cisco VPN software and I get error 1722.  Says that there is a problem with the windows package install.  How can I fix it?

    This is a general error and often a problem with the installation program itself, not Windows.

    Download the installer for the latest version taken support your version of Windows (32-bit / 64-bit),

    and give him another chance.

    If problem persistst, redirect your question to the Forum of Cisco's Support of TechNet.

    They will be able to help you the best.

    https://supportforums.Cisco.com/

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

  • The charge would be created with the unique package with date id

    Hi all

    Thanks in advance,

    IAM new to ODI, in my process I dnt know below two constaraints how to do, please help me in this regard...

    1. the load would be created with the id of a single lot with the date and
    stamp under the unique number (when the load data from source to target).
    2. HIGHLAND field would have the line number incremented from
    .001 when records are inserted in the table

    30021986 wrote:
    Hello

    Thanks for the reply, my requirement is,
    1.i have field JELN in the target table, in that line number is incremented from de.001 in the table. (Field JELN would have the incremented number line from de.001 when the rows are inserted in the table)

    -> for what I had done using sequenceing odi_sequence craeating, but it will give higher error.
    and the second condition is

    Never use ODI sequence unless you do business with a technology that has no native sequence is
    (eg files). Most of the RDBMS has their own sequence, and you use these alone.
    For oracle, you must use . NEXTVAL in the field mapping. Be sure to run on the target.

    2. when iam loading the data from the source to target a unique batch number must be generated with the date and time stamp (the load would be created with the unique package with date id and + *)
    timestamp in the unique number +) *.

    You can use SYSTIMESTAMP in this area and do not forget to run on the target.

  • I tried to install the latest version of itunes with windows 10 but he said "there is a problem with the installation package. A program to complete the installation could not be executed. Please contact the support staff. No matter what guys?

    I tried to install the latest version of itunes with windows 10 but he said "there is a problem with the installation package. A program to complete the installation could not be executed. Please contact the support staff. No matter what guys?

    (1) temporarily disable your security/antivirus software

    (2) download iTunes from the official source: http://www.apple.com/itunes/download/

    (3) try to reinstall

    (4) turn on your anti-virus

  • I used a cleaning program that has removed the solitaire games that come with the software package of vista. Is it possible to recover?

    original title: OOPS! Remove Solitaire games by mistake

    My husband used a cleaning program that has removed the solitaire games that come with the software package of vista. Is it possible to recover?

    Hi L-959,

    Try to reinstall the game Solitaire to turn on or off Windows features.

    Turn on or off Windows features

  • How to migrate first cc Pro for the complete package?

    How to migrate first cc Pro for the complete package?

    I just checked that you have added creative cloud apps on your account membership. If all goes well it should work for you now.

    Please let us know if you need assistance.

  • Forums won't let me post! -This time, with the exception of course

    I can't Web site forums to work properly. I tried on four different computers, including that of another location entirely. I also created a different identy entirely and it still does not work. If I go to connect, it connect and shows my personal info, change my password, no matter what.  All the while I'm in the forums at the top of the page says "Welcome, always frustrated" (it's my username). When I go to a question from the forum I posted a few weeks before, I can see it, but I can't answer. It does not "login / register", but this link will take you to a page that is never displayed. The same thing happens if I try to start a new discussion. After many trys, I thought I would try again. Some how I arrived at this time. Can anyone help? (by the way, I'm not able to answer this, because I might not be able to post again).

    If youi have problems with the forums you must report it on the forum planned to deal with the problems of forum...

    http://forums.Adobe.com/community/General/forum_comments

  • How watermark with the file name?

    I've searched and searched and I can't find an easy way to do this... but it MUST be possible!

    Some (really clumsy) Solutions, I found:

    1. I can create a .csv with two columns, each list of filename for each image in a folder.  Then, using variables in PS, I use the first column as a variable image replacement and the 2nd column as a text replacement variable to export the files.  This solution is both your time and creates images that are all the same size.
    2. LR/Mogrify plugin 2 - what might do the trick, but it doesn't seem to work with the latest version of LR
      • (I get this error: an internal error occurred: LRCatalog; withCatalogDo has been marked obsolete in Lightroom 2.0 and is not supported from Lightroom 3.0) This call is necessary.)
    3. Somehow use a droplet, pulling on the name of the metadata file to generate a watermark text... which I can't figure out how to do.

    How can this be complicated?  There must be a clear Super button, Miss me him somewhere in LR, because I can't imagine NOT having need of this feature.

    Help, please!

    You can do it in the slideshow module. By clicking on the ABC button on the toolbar and choosing the file name in the menu dropdown. You can drag the text box anywhere to anchor it in the Center, downstairs, etc. top of page. You can print a whole batch to PDF. See image:

  • Illustrator update problem with the new package update

    When I enter help/update, it appears the Erzberg adobe to update application window and then he said: "the detected server does not respond, the server may be offline temporarily, or the settings of firewall or internet is perhaps incorrect" what should I do?

    everything worked! for those who have this problem, try this:

    Solution

    (1) open the network and sharing Center

    (2) click on change adapter settings

    (3) with the right button of the card Microsoft Virtual WiFi Miniport, and then click on disable.

    (4) run the Adobe Application Manager - I hope that this time he will succeed.

  • Satellite L750 - how scrolling with the touchpad?

    I have a Satellite L750 (my first laptop and first touchpad) running Windows 7. I put the mouse scrolling to 1 line at a time, but every time I place the pointer on the right scroll bar arrow down (and press the left button or press on) the screen pops so that the scroll bar is at the bottom. I want the screen to "inch" down slowly as if I was using a mouse wheel.

    Yes, I know that the answer is probably very simple, so those people who are itching to answer don't forget I'm a 'newbie' to touchpad.

    Concerning

    Hey,.

    You can scroll with the touchpad on the right side of it. Just move your finger upward or down on the right side of the touchpad and you can scroll with this gesture. It of not complicated and very easy.
    In addition, these basic operations are described in the user manual and I recommend reading. ;)

    If you are not familiar with the touch pad, you can also connect an external USB mouse (mouse even as on a desktop computer). These external mice are cheap and you don't need a driver for it. Just connect it to a USB port and it of ready to use :)

  • What is exactly included with the new package of photography for adobe?

    well first of all, I'm in love with all these massive changes all around.

    Secondly, I'm kinda a hot mess.

    For starters, I put to level my poor old PC to a Mac (it was time!), it means I'm losing all my previous software. (It's time to also update in all cases) I currently have installed cs4 and also lr4 on my PC. I pick up my new Mac mini tomorrow and would like to have a solid game plan.

    I'm having a hard time to understand what the new cloud options, as well as the package of photography for $9.99 / month. With that, cloud creative included? do I have to buy cloud creative membership in addition to the packaging of photography? This includes full use of photoshop and Lightroom versions? And finally, what is the advantage vs lr5 buying outright (physics software) and / or using Photoshop full download purchase and use by creative cloud. My how times have changed... I feel so out of the loop, however extremely excited for the changes and the inspiration.

    Thanks in advance and follow the incredible changes.

    RP

    My understanding is that the photographer $ 9.99 package includes 2014 CC Photoshop and Lightroom CC 2014, as well as 2 GB of cloud storage. He does not include access to the rest of the apps universe CC (what you would get with a full package of CC), nor does it include TypeKit as part of the package. It also includes access to iPad and iPhone applications of Lightroom and the Photoshop Mix app for the iPad.

    Here is a link to the press release: Adobe Releases New Creative cloud photography Plan for $ 9.99 per month

  • iTunes does not install it: there is a problem with the installation package

    When I try to install itunes on my computer, it says "' there is a problem with this windows package install, a program required for this installation could not be executed." What is happening and I can fix it? I have

    There are various different problems which give rise to similar messages.  Here are a few things that can help.  If you get any errors along the way, please register completely for display in case you can not install it to succeed.

    Re-download the package iTunes, but before that in this case, temporarily disable your antivirus (if you download directly from Apple, the file will be safe).

    Open a command prompt window (start > run > cmd > OK) and type the 2 following lines, pressing ENTER after each line

    misexec / unsubscribe
    msiexec/regserver

    Close the command prompt window and see if the installation works.

    Otherwise, download and install the latest Windows Installer: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=8483

    Click Start > run > services.msc > OK
    Scroll down to Windows Installer
    the "Startup type" should be "manual".
    Start the Windows Installer service
    Close the Services applet

    Try installing iTunes

    Download the Windows Installer Cleanup of http://majorgeeks.com/Windows_Installer_CleanUp_Utility_d4459.html know that Microsoft has removed this utility of its servers to download because in certain circumstances he removed more than it was supposed to.  For security, back up the registry first (see http://windowsxp.mvps.org/registry.htm ) or create a disc image/clone.

    Use the free Revo Uninstaller(or cleaning) and repeat the installation of iTunes.

  • Windows 7 Setup fails with «the installation package cannot be opened...» »

    We receive the error message "this installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package. "the installation of accessdatabasedriver.exe (database driver Access 2010).

    I tried to log in as a local administrator without success.

    I ran the diagnostics for Windows install and it says that nothing is wrong.

    I tried to disable the anti-virus software and scan for malicious software without success.

    Any ideas?

    The tracking information is stored in the temp folder:

    = Registration began: 14/07/2015-14:57:24 Build type: SHIP UNICODE 5.00.7601.00 appeal process: C:\Windows\SysWOW64\msiexec.exe =.
    MSI (c) (0C: 88) [14:57:24:286]: established police.  Charset: Req = 0, Ret = 0, fonts: Req = MS Shell Dlg, Ret = MS Shell Dlg

    MSI (c) (0C: 88) [14:57:24:286]: established police.  Charset: Req = 0, Ret = 0, fonts: Req = MS Shell Dlg, Ret = MS Shell Dlg

    MSI (c) (0C: 4) [14:57:24:301]: Resetting cached policy values
    MSI (c) (0C: 4) [14:57:24:301]: value of strategy Machine 'Debug' is 0
    MSI (c) (0C: 4) [14:57:24:301]: * RunEngine:
    Product: AceRedist.msi
    Action:
    Command line:
    MSI (c) (0C: 4) [14:57:24:301]: value of strategy Machine 'DisableUserInstalls' is 0
    MSI (c) (0C: 4) [14:57:24:317]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3:2
    MSI (c) (0C: 4) [14:57:24:317]: Note: 1: 1324 2: Program Files (x 86) 3: 1
    MSI (c) (0C: 4) [14:57:24:317]: MainEngineThread returns 2
    = Recording stopped: 14/07/2015-14:57:24 =.

    Found the problem and the solution.

    I found that all msi packages would fail.  I tried to install another package as a .exe and received the error message: "the folder path ' program files (x 86)" contains an invalid character.

    This brings me to wonder about the long file name support.  After research, I found the registry key 'Win31FileSystem' has been set to 1.  This system was originally setup to be able to save files on a computer embedded Windows 3.1 (don't ask). It turns out that having this disables running or is not compatible with the appointment of "Program Files" (x 86)  Definition of this registry key to 0 and reboot solves the problem of msi.

    Thank you

    John

  • IM paying for all applications with the student package, but still the test mode!

    First of all, I had the plan of photography and used only photoshop but then I discovered that its cheaper to have the plan student with all applications, so I changed and paid for the first month with the edition creative cloud student and teacher, but I can not download any program except photoshop. I think its because I have has not cancelled the foreground before I started a new one, or what?

    Troubleshooting FAQ: What should I do if I have a subscription, but my application acts as if I had a trial?

  • How does with the sensitive sites and inbrowserediting?

    It is perhaps a matter of time, maybe that I've just not found the right place to learn.

    As I created a Web site in Muse, makes sensitive: www.bit-coaches.com, I had to deal with some "hide the breakpoint', 'hide in other breakpoints.

    As I wasn't able to do the type layers resizing at different breakpoints, I copied the text layers, gave them another name (Text1-1200/Text1-960/Text1-678/and so on)

    (I added styles to paragraphs as well as for each new text layer, of course) and makes them visible in different stitches. The very important question: what happens to these text elements I (or even worse, my client) wants to change via inbrowserediting?

    Also - and this could be part of the answer - West one tool in the toolbar of the text elements make attributes to unique text by point stop or through all breakpoints.

    So far (mac_heibu once tried to explain it to me/us), I do not have the difference between the two settings. One of them is text resize?

    Because I could take that one layer of text through all breakpoints and the question would be depricated, right

    The same question belongs to my own website, I want to download soon: home

    Although it is all small text on the landing page, I want to make it appear as the best and most readable as possible. So I had to change the size and settings several times.

    Thanks in advance

    Uwe

    No, do not put any extra layer for this, all go in a single layer.

    If you change the pages of BIE, you can browse the different stitches and to preview the site.

    Please refer to this updated document for information on editing the InBrowser - site content edit Adobe Muse from a browser

    Kind regards

    Ankush

Maybe you are looking for

  • HP Pavilion DV3560EV RTC battery

    Hello I have a HP Pavilion DV3560EV and the last two days cannot keep time and date. I think that the rtc battery is dying. I found that the reference is 468824-001. This part number is only for my laptop model or others too? Because I found that the

  • Next_Value

    HelloI am trying to reach following the results. I have only LOAN_DATE available and trying to calculate PAY_DATE. PAY_DATE is the same date in the next LOAN_DATE. If there is one line for B_ID even or it's the last line of PAY_DATE database must be

  • Dreamweaver 30 day free trial reset?

    Hello, is there a way to reset the free 30 day trial for adobe Dreamweaver? I downloaded it for fun, just to see what its subject and I did a little and watch some tutorials and then I know for school, we use Dreamweaver for a week and I want to be "

  • How to re - install lightroom

    My hard drive crashed so that I have more lightroom on it. How can I install again?

  • Need help understanding syntax

    HelloI need help to understand the syntax. PPRAMImpl am = (PPRAMImpl)pageContext.getApplicationModule(webBean); What is PPARAMImpl? I know 'am' is a variable. And with pageContext.getApplicationModule (webBean), we try to get the name of AM for this