How to import xml data from a site http with PL/SQL

Hello

I created a table with an XML field as follows:

1 save the scheme "service."

2. create table 'command.

3 imported data in the table 'Command' of string data.

Everything works perfectly fine, but I need insert the data directly from a URL like this

http://API.mercadopublico.CL/Servicios/v1/Publico/ordenesdecompra.XML?Fecha=02022014 & ticket = F8537A18-6766-4def-9E59-426B4FEE2844

attached I include codes

Please can you help me with the solution.


Thank you very much

Hi Carlos,

You can use HTTPURITYPE to access the resource by its url:

insert into Ordenes values (
  1
, httpuritype('http://api.mercadopublico.cl/servicios/v1/publico/ordenesdecompra.xml?fecha=02022014&ticket=F8537A18-6766-4DEF-9E59-426B4FEE2844').getxml()
);

If you're on 11g, you may also need to set an ACL for the request.

Tags: Database

Similar Questions

  • How to import XML data a source?

    Hello community,

    right now I'm developing some administrative forms for employees of our University.

    To facilitate filling in I want a few fields common to AutoComplete with data from an xml or xdp data source.

    First I tried to put the following line of JavaScript Code in the docReady event or a button's click event:

    xfa.host.importData("/c/path/to/xml/file.xml");

    I also tried to use a script to file level because of the information I found in some forums.

    the file .js in the Javascripts directory:

    myTrustedImport = app.trustedFunction (function (doc, path)
    {
    app.beginPriv ();
    var myTrustedRetn = doc.xfa.host.importData (path);
    app.endPriv ();
    Return myTrustedRetn;
    });

    All trys finished with:

    NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf sharp characteristic oder method.
    Doc.importXFAData:-1:XFA:Formular1 [0]: #pageSet [0]: Seite1 [0]: schaltflache1 [0]: click

    in English, which is something like:

    NotAllowedError: access this property or method is resetricted by the security settings.

    Doc.importXFAData...

    the same mistake triggers when I have the certified document and/or extended Reader permissions.

    Please help me solve this problem.

    Best regards

    Korbinian Kugelman

    Hello

    Once the document is certified, the user who wants to use the file has to trust the author of the certificate and allow them to have higher fees.

    It's the best literature, I could find on short notice, will seek to better

    http://help.Adobe.com/en_US/Acrobat/9.0/standard/WS58a04a822e3e50102bd615109794195ff-7d7e. metempsychosis

    Hope this helps

    Malcolm

  • How to import XML data?

    Please explain with examples

    concerning

    VPRS

    For example, you have an XML name 'myxml.xml' file in the same directory of your fla with the following content:

    Something111

    Something222

    //
    You can load it via the URLLoader class:

    var cXmlLoader:URLLoader = new URLLoader();

    var cUrlReq:URLRequest = new URLRequest ("myxml.xml");

    cXmlLoader.addEventListener (Event.COMPLETE, onXmlLoad);

    cXmlLoader.load (cUrlReq);

    function onXmlLoad(oEvent:Object):void

    {

    XML.ignoreWhitespace = true;

    var cXmlData:XML = new XML (oEvent.target.data);

    trace (cXmlData.mychildnode [0]);

    trace (cXmlData.mychildnode [1]);

    }

    If you had several children nodes under each of the child nodes, then you could access it by the rating by simple points using node names.

  • is it possible to import a page from another site?

    Hello! It is probabably the first of many questions coming. I'm learning on the fly...

    How to reset a page back to the original or import a page from another site (being the site of duplicate).

    Looks like an obvious thing to do without changing the entire site. properties of the page reset did not help.

    Thank you!

    import of a page is not possible, but what you can do is.

    1, open the two files of muse

    2. on your template file, go to the page that you want to reset.

    3. in the Edit menu-> select all (or ctrl + a youâ case in re using Windows)

    4. navigate to another site where you want to reset the page.

    5. create a new page or remove content on an existing one.

    6. yet once in Edit-> stick it in place.

    This should do what is necessary. I would like to know if it works or not.

  • How do I export data from one day to backup disk.

    Hi all

    Here we have a requirement like, we need to download the data from one day to the external drive and we must compire the exported data and the data in the table.
    I googled and I have discovered that using expdp command we can export the table content, but my Question is how do I export data from one day. My table having 2 years of data and I need download the data of only one day.

    expdp scott/tiger@db10g tables = EMP, DEPT = TEST_DIR dumpfile = EMP_DEPT.dmp expdpEMP_DEPT.log = logfile directory

    Can someone tell me how to download data from one day to the table & compare data exported with the data in the table. (I know both exported and data of the table data will be the same that we are downloading data of the actual table, but for tests, I need to know how to compare).


    Thank you
    Sree

    However, I do not understand the scenario but here is a way to compare:
    (1) change the name of the table newly created in another name
    (2) import the exported file once again

    you will have the same data in both tables

  • How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox

    How can I get data from each associated XMLnode in movieclips separated when you click a line in the combobox?

    A sample of XML is like this:

    <>planter

    < Lauvtre >

    < Botanisk_navn > Acer campestre < / Botanisk_navn >

    < Norsk_navn > Naverlonn < / Norsk_navn >

    Gronn < Farge > < / fan >

    H4 < Herdighet > < / Herdighet >

    < Hoyde > 10-15 m < / Hoyde >

    < / Lauvtre >

    I have a combobox where it shows the botanical name and the Norwegian name. But the rest of the info in movieclips seem separate.

    Someone has an idea how to do this? Can I use the trace function maybe? Here is my AS3 code so far:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void

    {

    your. Text = list.selectedItem.data;

    TB. Text = list.selectedItem.label;

    }

    var xml;

    function onLoaded(e:Event):void

    {

    XML = new XML (e.target.data);

    var it: XMLList = xml. Planter.Lauvtre;

    for (var i: uint = 0; i < il.length (); i ++)

    {

    list.addItem ({data: it.}) Farge.Text ([i]) + "\n"+ it.» Herdighet.Text ([i]) + "\n" + it. Hoyde.text ([i]),

    label: it. Botanisk_navn. Text() [i] + "\n"+ it.» Norsk_navn. Text() [i]});

    }

    }

    Loader.Load (new URLRequest ("lauvtre.xml"));

    Thank you!

    Rheus.

    I don't know what you're trying to do.  but, if you want to fill one combobox with the botanical names and when one is chosen, the other use of logins:

    var loader: URLLoader = new URLLoader();

    loader.addEventListener (Event.COMPLETE, onLoaded);

    list.addEventListener (Event.CHANGE, itemChange);

    function itemChange(e:Event):void {}

    var selectedObj:Object = a [list.selectedIndex]

    trace (selectedObj ['fan'], selectedObj ['Botanisk'], etc);

    }

    var xml;

    var a: Array = [];

    function onLoaded(e:Event):void {}

    XML = new XML (e.target.data);

    var it: XMLList = xml. Lauvtre;

    for (var i: uint = 0; i

    list.addItem({label:il[i].child('Botanisk_navn').toString()});)

    a [i] = {'Fan': it [i].child('Farge').toString (), 'Herdighet': it [i].child('Herdighet').toString (), "Hoyde": he [i].child('Hoyde').toString (), 'Botanisk':il[i].child('Botanisk_navn').toString(),'Norsk_navn':il[i].child('Norsk_navn').toString()};}

    }

    }

    Loader.Load (new URLRequest ("test.xml"));

  • Numbers - how to import external data to a cell in a single file into a new cell in another file?

    Numbers - how to import external data to a cell in a single file into a new cell in another file?

    I want to do the same thing in numbers (3.6.2 (2577) I used to do in Excel (any version):)

    to import a calculation of a cell in a file in a new cell in another file.

    Example: I want to import the result of a sum in a specific cell of my accountant in August to a cell in comparison in my accounting of September.

    It was so easy in Excel. Until the reference computer broke down.

    By the numbers, I tried to copy - paste the contents of the cell formulated, but not good.

    No help manual online or anywhere. I think that maybe the function is absent in number.

    Then I return to MicroSoft Excel, that I have used for many years and I am sorry to say feel much more wysiwyg.

    Formulas in a numbers document cannot reference cells in other documents of numbers.

    "Much more wysiwyg" is another way to express what many of those who "used (MS Excel) for many years" expressed as "more intuitive. These two descriptions usually boil up to ' what I'm used to, ", which is also true in the other sense.

    Whatever the real explanation, the standard advice is "the tool that will do the job." If "the job" requires referencing values in a separate document, the numbers (alone and without the help of AppleScript) are not the best tool for this job.

    Kind regards

    Barry

  • How to import my contacts from my Tablet 10 "toshiba

    It is a question of toshiba 10 '' tablet, how to import my contacts from my computer on my tablet. I have "a real model, so tell me simply. Thank you very much.

    Optional information:
    Computer OS: Windows 7
    Browser: IE

    Already tried:
    Found nothing to try.

    Any suggestion would be appreciated. Thanks in advance.

    Susan.

    There are different applications. It also depends on where (in which program), your contacts are backed up.

    There is no "Google App Sync" that works with the latest versions of Outlook. I'm not sure if you can directly sync contacts with this app, or if it goes over google's servers.

    For our phones, I used "MyPhoneExplorer". This app is free for PC and Android sync (not only) contacts directly between the PC software (Outlook, Outlook Express, Thunderbird, Lotus, MyPhoneExplorer internal) and some android devices. Either your tablet. Synchronization can be done via WiFi. Thap app comes also with own icons for tasks and notes, and allows to synchronize the calendar as well (if a calendar is present on the Tablet).

    Don't forget to backup your PC Contacts before the first synchronization, however.

  • I transferred all my info to my new 6 s.  How to clear all data from old 4S?

    I transferred all my info to my new 6 s.  How to clear all data from old 4S?

    Follow the contours of the steps in this Apple Support page:

    What to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • How can I download data from key USB flash to a Windows 7 computer

    I need to transfer some files from my PC to my PC Windows 7 Windows XP using a USB flash key. I've used Windows Easy Transfer to move my files without problem and some programs but did not download some files. I downloaded these files on a USB flash and I can access the files, as long as the stick is pluged. How can I download data from the USB flash on my Windows 7 computer

    Hello

    The following video may help:

    http://www.YouTube.com/watch?v=hrMQh0Xkpvs

    or this article:

    http://www.swarthmore.edu/documents/administration/its/how%20To%20Use%20A%20USB%20Flash%20Drive.PDF

    and here:

    http://TECHTIPS.salon.com/use-USB-flash-drive-transfer-files-PC-Mac-2544.html

    (Mac here can be a PC).

    Good luck.

  • How to import my email from windows contacts 8 from my old computer?

    Original title: address book

    How to import my email from windows contacts 8 from my old computer?

    Original title: address book

    How to import my email from windows contacts 8 from my old computer?

    The answer depends on what e-mail program you used on your old computer. Please tell us.

  • How to import a Publisher's Web site online at muse of adobe

    How to import a Publisher's Web site online at muse of adobe

    It is not possible. Muse uses its own system.

    Mylenium

  • How to import a table from a drop down list?

    I am very new to ColdFusion and learn things I want.  I wonder how to import a table from a drop-down list.  I created the table and the drop-down list but cannot make it work properly.  I would like to see a small example.

    Please help thanks...

    Here is a very simplistic example. Please research each tag in the documentation to see how they can be used:

    ArrayNew (1) >

    Sorry for formatting issues.

    See you soon

    Eddie

  • Select this OPTION to generate XML data from the table using XMLELEMENT, XMLAGG gives error ORA-19011 string buffer too small

    My select statement fails with the error:


    The ORA-19011 string buffer too small


    The select statement looks like:


    SELECT TO_CLOB)

    XMLELEMENT ("accounts",

    XMLELEMENT ("count",

    XMLATTRIBUTES)

    rownum AS "recordId."

    To_date('20130520','YYYYMMDD') AS "datestarted."

    123456 AS "previousBatchId."

    56789 AS 'previousRecordId '.

    ),

    ....

    .... .

    .....

    XMLFOREST)

    SIG_ROLE AS "SignatoryRole."

    To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."

    NVL(Reason,0) AS 'reason '.

    ) AS the 'transfer '.

    )

    ()) AS CRDTRPT

    OF ANY_TABLE;

    • It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.

    NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES

    No UTL_FILE

    I need to use the REEL spool the resulting XML data of the SELECT query.

    SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)

    What I do is:

    1. a column of type CLOB to a xml_report of the loading of the above SELECT query table
    2. Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml

    No need of XMLTYPE data behind. Xml data stream is fine for me.

    In addition, I need to validate the XML file, also using XSD.

    Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.

    Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    A Suggestion or a solution to this problem would be appreciated.

    (Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)

    Bravo!

    Rahul

    It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)

    You use the right method.

    There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.

    To serialize XMLType to CLOB, use the XMLSerialize function:

    SELECT XMLSerialize (DOCUMENT

    XMLELEMENT ("accounts",

    ...

    )

    )

    OF ANY_TABLE;

    For the rest of the requirement, I wish you good luck trying to spool the XML correctly.

    You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.

  • How can I play DVDs from my hard drive with windows XP?

    How can I play DVDs from my hard drive with windows XP?

    If you have a decdoer of installed dvd, usually with packages like power dvd etc that allow you to watch a dvd in your dvd drive, and then later versions of Media Player will also play your DVDs, and all of these programs that play said removable DVD.

Maybe you are looking for

  • How can I remove the stand of my HP W2371b monitor?

    I try to install my monitor on a wall, and I have to get off the stand before I can.  I went down the flat part "football" with little or no question - but the real part of 'stand' will not move! I don't want to damage the monitor - I missed a tab or

  • CONTROLLER MD3220i

    E' possibile avere un preventivo per sostituzione di di uno MD3220i fuori co storage controller? Grazie

  • HP touchpad, is anyway to edit a powerpoint presentation?

    I havw touchpad and I really need the ability to modify and use powerpoint. If anyone has answers it would be much appreciated

  • My computer freezes whenever I'm playing Minecraft. Help?

    When I launch Minecraft and plays for about a minute, it just freezes. I was wondering if you could help because I just bought it and don't want to lose my money! Note: I have an Acer Aspire PC series

  • Problems since the last update of cc

    All the morningBit of a difficult to describe but here goes...Since the last patch (CC2015.0.0) running on Mac OSX 10.9.5 - when I open an image, it seems to stay in the upper left corner and a black bar at the bottom of the window - I discovered tha