Advice on the use of APEX_JSON with a CLOB in the body as a string
Hello all and thanks for any help in advance.
I have the task of liaising with a 3rd party API via JSON to send information to our database. First warning is the HOST for us is not and race so I have no way of properly this test until tomorrow, but I wanted to ask this question to try to overcome a potential problem.
In the body of the JSON object, we must add a chunk of xml (already created/kept or can be created on the fly) and it must be validated on as a long string. Now, this question is that the string can be up to 20000 characters long so when its processed is stored as a CLOB in the database (not made by me).
Now my thoughts early to do this was to create a procedure allowing certain parameters get the relevant piece of data and xml stored as a CLOB. Then and that's where I maybe need some tips, follow these steps.
This host requires JSON in this format
{
'batchcode': 1234562,
'XML string': 'THIS WILL BE a MASSIVE XML STRING',
""bounding ":" ",".
"ID": "123456465",
'field1 ':
.
.
etc.
}
We currently have a few apex applications so I got a good look at the documentation and allows to generate the required using JSON:
Thus to collect information of input parameters
APEX_JSON. INITIALIZE_CLOB_OUTPUT;
APEX_JSON. OPEN_OBJECT();
APEX_JSON. WRITE ("batchcode," value from database");
APEX_JSON. WRITE ("XML string ', our xml database that is stored as a CLOB string");
APEX_JSON. WRITE (bounding "," value of database");
APEX_JSON. WRITE ('ID', 'Value of database');
.
.
.
etc.
APEX_JSON. CLOSE_OBJECT();
Then validate using endpoint:
APEX_WEB_SERVICE. () MAKE_REST_REQUEST
p_url = > 'URL of the end point. "
p_http_method = > 'MESSAGE ',.
p_username = > API_USER,
p_password = > API_KEY,.
p_body = > apex_json.get_clob_output
);
Now assuming that my method is correct only the APEX_JSON. WRITING literally accept its entry as a type CLOB and he will be able to properly analyze or will it arrive at a mansion that will actually write the string itself?
Edit I found that if I APEX_JSON. WRITE ("XML", "CLOB table column") that it exported the CLOB but not in the format I want. This is due to the fact that my CLOB has characters like <>etc in II and the output is burning out in unicode, so for example <? XML version = "1.0" encoding = "UTF-8"? "> as stored in the object CLOB becomes \u003C?xml version=\"1.0\ ' encoding =------"UTF - 8\ '? \u003E\n in the output using APEX_JSON. To write.
The only other way to do it, I think it is so divided in pieces as follows:
SELECT ROWNUM as XML_PIECE_NO, TO_CHAR (SUBSTR (a.xmldoc, (ROWNUM-1) * 4000, 4000)) AS SECTION
Of ast_xmldata one
CONNECT (ROWNUM-1) * 4000 < = LENGTH (a.xmldoc)
Then maybe concat in the JSON long xml string field.
I hope I have explained what I want to do but if not please respond any help will be greatly appreciated.
Concerning
Post edited by: K4E
EDIT I CAME FROM WITH a SOLUTION
Post edited by: K4E - found solution 02/04/2016
Thanks for the response of Christian, logical exit that way.
Through some trial and error, I found a solution to my problem that seems effective enough without having to worry about unicode characters written. There is seemingly a procedure without papers in the APEX_JSON package called apex_json.write_raw that does what it says. All I had to do then was to use escape characters in my CLOB for things like "then I get a few good valid JSON in the format of the API, I work with love."
Hope this helps someone else with the situation.
K4E
Tags: Database
Similar Questions
-
iTunes version 12.3.3 used to synchronize with the iPhone 6
I installed the update to iTunes (Version 12.3.3) on my MacBook Pro. However - now iTunes won't sync with my iPhone 6. The color wheel continues to turn but will not connect with my iPhone.
My iPhone and MacBook have all proposed updates. And work well independently. (Note: iTunes doesn't seem to work a little more slowly than previous versions.)
I've seen a few suggestions on discussion forums, but they seem to be for people using Windows. Advice for the MacBook crowd would be appreciated.
Jef
If you do not see your device in iTunes for Mac - Apple-Support - https://support.apple.com/HT203979
Device are not not immediately after the upgrade - https://discussions.apple.com/thread/6573744 - try to restart
LincDavis July 2014 post on reset sync services when iTunes is not responding - https://discussions.apple.com/message/26308435#26308435
LincDavis June 2015 post about other things to try - https://discussions.apple.com/message/28397802#28397802
-
Lost the disk for Installation of Windows Vista - can I use my friends with my product key?
I am running Windows Vista on my computer at home, but I had this for a few years, and he began to have very slow, so I decided to completely erase the hard drive, now I know how to do this, but I need to re - install the OS when I'm done, but I've lost my Windows Vista installation CD , even though I still have my code/product key - it would be OK to use my drive of Windows Vista to friends with my product code?
I tried this article: http://support.microsoft.com/default.aspx/kb/326246and he do not seem to answer my question - I'm trying to replace my copy, I just want to know if it is OK to use my friends?
Yes.
As long as it's a DVD from Microsoft and not a computer Manufacturer'e Recovery DVD.
Read the information below.
Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .
There is no Vista free download legal available.
Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.
Normally, they do this for a cost of $ small.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.
See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.
Normally, you have to press F10 or F11 at startup to start the recovery process...
Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.
They will tell you how to do this.
Every computer manufacturer has their own way of making recovery disk/s.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
A good Vista DVD contains all versions of Vista.
The product key determines which version of Vista is installed.There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.
If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):
Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.
At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu
http://support.Microsoft.com/default.aspx/KB/918884
MS advice on the conduct of clean install.
http://www.theeldergeekvista.com/vista_clean_installation.htm
A tutorial on the use of a clean install
http://www.winsupersite.com/showcase/winvista_install_03.asp
Super Guide Windows Vista Installation
After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.
Save all data, because it will be lost during a clean installation.
See you soon.
Mick Murphy - Microsoft partner
-
Hello
I'm trying to implement the AIA error handling and reading that AIA provides xpath functions to retrieve the error code messages and corrective action messages. the documentation says that you must use the oracle.apps.aia.core.eh.i18n.EHCorrectiveActionRB listresourcebundle class to do this.
My questions are:
1. this oracle.apps.aia.core.eh.i18n.EHCorrectiveActionRB of the class already exists within the AIA in order to add the new error etc... you just need to change?
2. If the above is true then where can I find this class to add new messages?
3 this Listresource bundle must be implemented in all composite samples of AIA? If yes how can I do this?
3. does anyone have examples that I can use to implement the management of errors?
4. all other general advice on the use of this list of resources group
Thank you for your help in advance.
Kind regards.
Adrian1. this oracle.apps.aia.core.eh.i18n.EHCorrectiveActionRB of the class already exists within the AIA in order to add the new error etc... you just need to change?
Yes, they exist oob with FP. In 10g, it will be under system/classes/bpel file.
2. If the above is true then where can I find this class to add new messages?
In 10g, it will be under system/classes/bpel file. 11 g, it will be under/soa/modules/oracle.soa.ext_11.1.1/classes folder.
3 this Listresource bundle must be implemented in all composite samples of AIA? If yes how can I do this?
No, the bundle is a single resource, and you can add your messages in the same class.
3. does anyone have examples that I can use to implement the management of errors?
Please see available in OTN download AIADemo. All composite materials have the error handling.
4. all other general advice on the use of this list of resources group
11 g class of resource bundles is replaced by a file of text properties. -
Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.
You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.
-
I downloaded the new version and it says: you cannot use this application with this version of Mac os how can I download the older version? My os is 10.4.11
You can read this article: Firefox no longer works with Mac OS X 10.4 or PowerPC processors to read about the EOL for Mac 10.4 support and what the best options going forward.
-
Question
I want to record with < alt > < s > in the Exact program online. This function does not work. This is the first time I use this program with firefox.edit, escaped mod < s > in order to avoid the line through question
A web page can be defined a "accesskey" for an item. Unlike IE/Chrome/Safari, who use the Alt key only, Firefox requires pressing Alt and Shift to activate the element. In other words, try
ALT + SHIFT + S
and see if it works.
I don't know of any way to change this so that the change is not necessary. There may be an add-on?
-
What is the last recommendation on the use of Aperture with El Capitan system software?
What is the last recommendation on the use of Aperture with El Capitan system software? I'm sure to BONE 10.11.x since I was a big user of Aperture?
TIA,
If you need a feature that has opening but Photos doesn't work, click here and follow the instructions.
(141652)
-
I used 129 usd with couse anaccident I didn't know that my dads credit card has been connected
It has been connected couse I used on another game, then its
already connected so I need money I have not used anything else for I have buyed and I want my dads back money / my money
Please help me
Nobody here can help you. We are just other users as you are. You can contact the support iTunes Store here, but they are not obliged to refund you, as all sales are final in Apple digital stores. Explain what you were doing and ask for their help.
-
First you tell me that my question is too long, then when I change you tell me to fill extra!
AVG Free
- Firefox does not neutralize your security software, just the toolbar that installs it. Your security software is always present in the background to protect you.
- Keep up to date with what is happening with AVG by visiting their forums: http://forums.avg.com/us-en/avg-forums
- You have successfully updated to AVG 2012 Free Edition?
- First read the 2nd item on the next page, then read the first item:
Post a question to the Support of Firefox forum
Some advice on the questions in the forum post. Look at the 2 images below and the explanations of the fields in the forum of Support of Firefox form "ask a question". Click on the images, or right-click on it to open it in a new tab, then click on the image in the new tab to enlarge for easier reading.If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You must update some plug-ins:
- Plugin check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in: install (or update) the Shockwave with Firefox plugin
- Adobe PDF plugin for Firefox and Netscape: Installation/update Adobe Reader in Firefox
- Next-generation Java plug-in for the Mozilla browser: install or update Java in Firefox
-
Try to get t my email, this happens: we're sorry, but you must enable cookies and Javascript to use your username with this site.
How can I do this?George Szántó
[email protected]see similar question answered https://support.mozilla.com/questions/836913
To be notified of updates to a question, if this is your problem or not just click on the "Get email notifications" and follow made the choice. Only the original poster can mark it as resolved, so there should be a slight difference in choice as an original poster and where you lock on another issue. Notifications only apply to individuals the question where is entered.
-
iOS 9.3 made connection kit hands free bluetooth to my Audi stuttering.
Both the speaker and the stuttering/pulse microphone so that you cannot speak/hear.
Using googlemap-app with instructions of the Tower burn via bluetooth still works very well, his is perfect.
It's an iPhone 6s and the car is an Audi A6 2010 with the Moose Bluetooth adapter business.
Another 6s to 9.2 iOS iPhone works fine with bluetooth hands-free, just like my phone before the upgrade.
I tried to disable the twinning, remove all old in the car and the iPhone and pair Bluetooth devices again.
Anyone alse experinceing this?
And tip on how to fix it?
I have the same problem with Audi Q7 2008 and iPhone-6s - iOS - 9.3.
-
I don't understand why I can't login my account using mozilla but with googlechrome fb, I am able to do... Mozilla can load the fb site but cannot access my fb account... I'm uncomfortable with the use of mozilla as my browser... pls help thanks
- "Clear the Cache": Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.
- 'Delete Cookies' of sites that cause problems: Tools > Options > privacy > Cookies: "show the Cookies".
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).
- Makes no changes on the start safe mode window.
See:
-
Can I use PC400 RAM with the Tecra A4 (Pentrium 750)
Can I use PC400 RAM with the Tecra A4 (Pentrium 750), currently PC333 is mounted.
Thank you
I put t know if you can use but AFAIK Toshiba recommends using these modules on the Tecra A4:
PC2700 256 MB (PA3311U - 2M 25)
PC2700 512 MB (PA3312U - 2M 51)
1024MO PC2700 (PA3313U-2M1G)Here are the modules of single channel 166 MHz DDR333/PC2700, DDR SDRAM, 200-pin SoDIMM.
-
I m using MacBook Pro with Maverick OS X version 10.9.5 and Garage Band 11´ v. 6.0.5 with hardware 2i2 Focusrite Scarlett Studio
kopi42 wrote:
Is it possible to share sound to the channels of the 'left' and 'right '.
Yes:
http://www.bulletsandbones.com/GB/GBFAQ.html#leftspeakeronly
(Let the page load COMPLETELY. The link to your answer is at the top of your screen)
Maybe you are looking for
-
Now that my project from FCP 5 minutes video clip is over, even if I am a complete and total novice to the iMac, I nevertheless managed burned a DVD via the file > share the menu option and everything went well, but now I want to download the .mov on
-
Problem of cooling system on my Satellite C660
Hello Have a new Satellite C660 I used it for 2 months and he started to give me the following system warning It has detected a problem with the cooling system please pay immediately the computer and return it for service. So what could be the proble
-
HP 7 G2 1311 np: change the android OS
Good evening Is it possible to change the operating system on my HP tablet 7 G2 1311np. I have android 4.4.2 Kitkat and move to version 5 lollipop? GreetingsAntonio R.
-
HP officejet pro 8620: Officejet printer change ink
When I try to change the ink cartridges, they do not slide in the view when I open the door. I can't find anything to solve this problem. I tried to turn the market, re - and re - opened the door. Any suggestions?
-
Use of Trend Micro System Tuner on a Windows 7 laptop.
I have one and half a year Asus computer old laptop with windows 7 and security Trend Micro Titanium software. Is there a reason for me to risk to help the Trend Micro Soft tuner system, that comes with the software. Indicators of Trend Micro who use