Transfer xml data from CF to flex w/o data services
Here's what I want to do. I would like to have flex tell ColdFusion to process a request and return CF flex via an xml stream query information.Is this possible without flex data services? If so, then how?
Sure. http://www.Adobe.com/go/cfmx702docs should have what you need.
Tags: Flex
Similar Questions
-
extract data from blob field containing xml data big
I'm working on Oracle 11 g 2, 11.0.2.0.3. UNIX database server.
my oracle instance receive large xml data service web ftp, I put this file as blob in a table called TBL_ALERT_XML (ID_ALERT NUMBER, DATE of the TIMESTAMP_ALERT, ALERT_XML BLOB).
My goal is to get data of BLOB content e file put in one or more other tables.
I try with the opening of a cursor on
SELECT XMLTYPE (UTL_RAW.cast_to_varchar2 (ALERT_XML)). Extract (' alerts/points/point / / Text () ') threads
OF TBL_ALERT_XML
without any filter on ID_ALERT.
But I get the error:
ORA-22835: buffer too small for to CHAR CLOB or BLOB to RAW conversion
Please help me, thank you very much
Because the web service is deployed in python and my co worker is not able to call a stored procedure with the parameter xmltype, but only with the setting of the BLOB.
If you can't get around it, so be it. All the less, using CLOB would be better.
However, which prevents you to convert BLOB XMLType entry within the stored procedure and store it in an XMLType column.
To do this, simply use the XMLType of BLOB.
create table tbl_alert_xml)
number of id_alert
date of timestamp_alert
alert_xml xmltype
);
insert into tbl_alert_xml
values)
1
sysdate
xmltype (p_blob
, nls_charset_id ('AL32UTF8') - put the encoding of the file here
)
);
Then, you will be able to execute queries optimized using XMLTABLE.
-
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:
- a column of type CLOB to a xml_report of the loading of the above SELECT query table
- 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.
-
I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes
I bought an iPhone 6s and want to transfer the data from my old iPhone 4S with iTunes but it says "the"iPhone"iPhone cannot be used because it requires a newer version of iTunes. Go to www.itunes.com to download the latest version of iTunes. "
I checked and the version of itunes is the latest AID!
DooozySue wrote:
I checked and the version of itunes is the latest AID!
Most likely, what you found, is that the iTunes version is the latest available for your operating system.
The latest version of iTunes is 12.4.3. This version requires at least OS X 10.8.5 or later version, or Windows 7 or later version.
If your iTunes version is earlier than 12.4.3, it will probably not recognize your 6s performance iPhone iOS 9.
If you do not have the required operating system, get first. Then download from iTunes
-
How can I transfer my data from the iPhone 6 down to my iPhone 5s? Thank you. Al
Back up and sync your iPhone to iTunes 6. Set the backup to encrypt. Then connect your iPhone via USB cable 5s and choose to restore the backup of the iPhone 6.
Your iPhone 5s must have the same version, or more updated iOS installed on it that the iPhone backup 6. If this isn't the case, set up your iPhone 5s as a new device, update 9.3.2 iOS software and files then it from the backup of the iPhone 6.
-
Transfer of data from IDE drive to SATA Drive
I have an old HP PC with an IDE hard drive, running windows XP. I want to transfer data from hard drive to a newer HP Pavilion computer on windows Vista. Need instructions on how to transfer the data and what toos hardware and software are needed.
Details of the recent PC (target PC) are:
Type of hard disk: SATA.
Model - A6160e CTO desktop PC / product nbr - gg754av / serial number MXG73501SZ.
More old HP Pavilion PC:
Hard disk type: IDE
Preponderance of details:-cannot read the label! (about 7-10 years) [old and gray - sound like me!]
Thank you all
NY11563
E-mail: [email protected]
Hello
There are limited resources,
(a) use Data transmission cable, something like one of the following thread:
http://au.price-selector.com/search?k=easy%20transfer%20cable & cid = 1-3-1-1-3
(b) another option: buy an IDE HARD drive case and put the old HDD on it, you can transfer data and use it as a HARD drive external.
Kind regards.
-
I UNDERSTAND THAT MICROSOFT MONEY VERSI0N 2011 IS DECOMMISSIONED. I AM HAPPYTO UPGRADE TO A NEWER VERSION, BUT A QUESTION AS TO HOW I CAN TRANSFER ALL DATA ON MSM 2001 TO THE NEW VERSION. WHAT WOUKLD NEW VERSION BE CALLED
original title: MISROSOFT MONEY VERSION2001original title: How can I transfer my data from Microsoft Money 2001 to a newer version?Hello
Check in the Microsoft Money Forum.
Microsoft Money - Forum
http://social.Microsoft.com/forums/en/money/threadsMicrosoft Money Solution Center - suggests alternatives
http://support.Microsoft.com/mnyWhat is Microsoft Money Plus sunset
http://support.Microsoft.com/kb/2118008BING - microsoft money replacement
http://www.bing.com/search?q=Microsoft+Money+replacement&go=&QS=n&SK=&SC=7-27&form=QBLHGoogle - microsoft money replacement
http://www.google.com/#sclient=psy-ab&hl=en&source=hp&q=microsoft+money+replacement&pbx=1&oq=microsoft+money+replacement&aq=f&aqi=g4&aql=&gs_sm=e&gs_upl=9978l11972l2l12926l12l1l0l0l0l0l467l467l4-1l1l0&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=dcc84c4c7dd2e143&biw=1024&bih=681I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
Transfer of data from FAT32 to key USB and Windows 7
Hello
I have a Dell USB external 1 terabyte drive, it is formatted in FAT32. I had no problem with the mobile file from my PC Windows 7 copy and play (video) files. I used my DVD/Blu-Ray player to view files and for some reason any, he started to not work as well. I deleted the files and the re-formatted the drive and now it takes forever to copy a file from my PC to the external drive, and when I click on most of the files, I get the green bar and after that windows explored hangs or Windows media player only. When I try to access the files on my internal hard drive or if the wireless (on my internal hard drive) I have no problem.
Any help would be greatly appreciated
Mark S Macy
Hi Mark,
I suggest you to connect Dell external USB 1 terabyte drive to another computer and see if the transfer rate is fine. If the transfer rate is thin on the other computer, then there is a problem with the drivers on the computer. If there is a problem with the transfer of data on the other computer too, then it might be a problem with USB.
Post us the results after trying the steps above.
-
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
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.
-
transfer the data from the portable hard drive
My computer laptop dv6910us primer is more. How can I transfer the data on the hard drive removed from my new laptop. I learn that the hard drive is "owner" for normal usb adapters that connect directly on the hard drive to transfer data do not connect to mine. Pls help!
It is not IDE is the normal dv6500 and superior hard drive adapter. As stated in the first post, if you remove the extra plastic piece... voila! an ordinary laptop SATA drive. It seems that it is part of the training, but I "guarantee" If you pull, it will detach.
-
Update of a column of table from xml data
Hello
I have an obligation to update a particular table from xml data column. to do this, I wrote the code below but I am not able to insert. could you please a peek into that.
create table emp3 as select *From emp where 1=1; alter table emp3 add (fax_response varchar2(50)); /*create sequence EmailRecords_XMLFILE_SEQ minvalue 1 maxvalue 999999999999999999999999999 start with 1 increment by 1 nocache;*/ /* create global temporary table EmailRecords_XMLFILE ( ID NUMBER not null, xmlfile CLOB ) on commit preserve rows;*/ /* create global temporary table UPD_Email_Records_With_Xml ( id NUMBER not null, response VARCHAR2(500) ) on commit preserve rows; */
the XML data is
<FAX> <EMAILOG> <ID>7839</ID> <RESPONSE>FAX SENT</RESPONSE> </EMAILOG> <EMAILOG> <ID>7566</ID> <RESPONSE>FAX NOT SENT</RESPONSE> </EMAILOG> </FAX>
CREATE OR REPLACE PROCEDURE proc_upd_email_records ( loc_xml IN CLOB, p_err_code_out OUT NUMBER, p_err_mesg_out OUT VARCHAR2 ) IS loc_id NUMBER; BEGIN loc_id := emailrecords_xmlfile_seq.NEXTVAL; --created sequence INSERT INTO emailrecords_xmlfile --created Global Temp table (ID, xmlfile ) VALUES (loc_id, loc_xml ); COMMIT; insert into UPD_Email_Records_With_Xml --created Global Temp table (ID, RESPONSE) select x1.id, x1.RESPONSE from EmailRecords_XMLFILE, xmltable('/FAX/EMAILOGID' passing xmltype.createxml(EmailRecords_XMLFILE.xmlfile) columns header_no for ordinality, id number path 'ID', RESPONSE VARCHAR2(250) path 'RESPONSE' ) x1 where EmailRecords_XMLFILE.id = loc_id; COMMIT; UPDATE emp3 er SET er.fax_response = (SELECT response FROM upd_email_records_with_xml pr WHERE pr.ID = er.empno) WHERE er.empno IN (SELECT ID FROM upd_email_records_with_xml); EXCEPTION WHEN NO_DATA_FOUND THEN raise_application_error (-20000, 'Sorry ! The Xml File which is passed is empty. Please try with Valid Xml File. Thank you!!! ' ); WHEN OTHERS THEN p_err_code_out := 4; p_err_mesg_out := 'error in insertion=> ' || SQLERRM; END proc_upd_email_records; {code}{code}
Someone suggest me a slightly easier way to insert data...
Thank you...
You're complicating things
A simple MERGE statement will do.
create or replace procedure (proc_upd_email_records)
loc_xml in clob
)
is
Start
merge into e emp3
a_l'_aide_de)
Select id
response
from xmltable)
"/ FAX/EMAILOG.
by the way xmlparse (document loc_xml)
the columns id number way "ID".
, path of varchar2 (250) response 'RESPONSE '.
)
) v
on (e.empno = v.id)
When matched then update
Set e.fax_response = v.response
;
end;
/
But there is no value added by using these temporary tables if you are not at least an intermediate XMLType column (storage preferably binary XML).
-What is the input XML code?
-What is the version of db?
-
Can I create an XSD from XML data into a CLOB?
Environment:
Oracle 11.2.0.3 EE on Solaris.
Highly an XML newbie so please be nice!
I spent the past few days pouring through the documentation and various articles, including this one, but... I need help.
I am trying to extract XML data stored in a CLOB and produce a flat file for the user's consumption.
They sent me what they think is the XSD for XML data, but when I look at the data in the CLOB I don't see tags in the XSD.
I would like to produce a XSD based on real data to compare with what they sent.
Is this possible?
I am able to query XML data using the tags that I see in data using XMLTable and it works fine.
Any help is greatly appreciated.
-gary
Welcome to the side of the world, where you're going to love it and curse, like any other piece of XML technology.
So if I understand correctly, the scope of your operation is to extract information from an XML file and then write this information to the disk, correct?
A few questions
-Why did the XML stored in a CLOB instead of an XMLType column? Without knowing the history of the system, it is a pertinent question.
-What size are the XML? I ask this question, it is because when the XML is stored in the columns of XMLType (relational structure object or XML BINARY SECUREFILE format), then Oracle can parse the XML much more easily when it is stored as a CLOB. If the XML is small enough, you can see no difference in performance between the two.
The Oracle DB itself has no built in the ability to generate a schema from an XML file. To do this, you need to use a third-party tool that has this feature in. For example, XML Spy can do. Other tools as well, but that's what comes to mind first is what I use. The only thing to remember is that the scheme he built is only an XML instance. Other XML instances can be different and not valid against the schema you generated, but still valid against the original schema unknown.
You can save the schema in the database and then use the XML to create an XMLType instance related to the schema and then validate the XML in this way. An example XML DB FAQ and here's another one Re: validation of XML schema
Hope that helps you continue.
-
Insert XML data from the Table->; back to null
Dear Experts,
-I have table xml as below:
Example of CREATE TABLE (XML_spec XMLTYPE);
Insert in the example
Select ' < name of Message = "dataStaticInvestor" type = "IncomingMessage" >
< name of field = "batchReference" > OPENINGBATCH000000 < / field > < List name = "data" >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< / list >
< / message > ' double.
Select * example;
create table hasil1 (c1 varchar2 (500), c2 varchar2 (500), c3 varchar2 (500));
-This step I create the procedure to insert xml data into the table as the batch.
DECLARE
x XmlType;
BEGIN
Select XML_SPEC in x for example;
insert into hasil1
SELECT
p.Extract('/Record/Field/@externalReference').getstringval (C1),
p.Extract('/Record/Field/@participantID').getstringval (C2),
p.Extract('/Record/Field/@participantName').getstringval () as c3
TABLE (XMLSequence (Extract(x,'Message/List/Record'))) p;
commit;
END;
/
-when the result of select hasil1, the output is back 3 rows and 3 columns, but all data is a null *.
Best regards
SigcleYou don't explain what output you need, but I guess something like this:
SQL> insert into hasil1 (c1, c2, c3) 2 select x.c1, x.c2, x.c3 3 from example t 4 , xmltable( 5 'Message/List/Record' 6 passing t.xml_spec 7 columns c1 varchar2(500) path 'Field[@name="externalReference"]' 8 , c2 varchar2(500) path 'Field[@name="participantID"]' 9 , c3 varchar2(500) path 'Field[@name="participantName"]' 10 ) x 11 ; 3 rows inserted SQL> select * from hasil1; C1 C2 C3 ---------------------- --------- -------------------------------- 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT
-
to retrieve data from xml data type
Hello...
I have a doubt in the oracle database... Here's how to retrieve data from xml data type?Like this...
SQL> ed Wrote file afiedt.buf 1 with t as (select xmltype(' 2
3') as xml from dual) 12 -- 13 -- end of sample XMLDATA, use below query on your own table etc. as required 14 -- 15 select x.* 16 from t 17 ,xmltable('/DETAILS/FIELDS_VALUES/FIELD' 18 passing t.xml 19 columns name varchar2(30) path './NAME' 20 ,val varchar2(10) path './VALUE' 21* ) x SQL> / NAME VAL ------------------------------ ---------- toMonth 5 ctTestPan 1 costType 2 toYear 2012 fromMonth 12 fromYear 2011 6 rows selected.4 11 5toMonth 5 6ctTestPan 1 7costType 2 8toYear 2012 9fromMonth 12 10fromYear 2011 -
transfer of data from one server to another server
transfer of data from one server to another server... How is possible?
We used to transfer data of one cube to another using... report script... then load rule... so can we use even for that?
but
I would like to know any other comments and other means (like to explore)If you move the range of data to load into the different cube, then you can use report script or calc extrcat data and can use the rule files to load the data.
If you move the data to load into a cube replicated in another environment, you can take the lev0 data and can do the free form of loading.
Maybe you are looking for
-
Re: Need drivers Windows Xp for Satellite A500
Hello I bought recently a series of laptop A500 and want to install Windows Xp as second operating system, but I couldn't get the drivers for it. Where can I get them? Thank you
-
scanappears only in black and white
I scan a document in color to the computer or e-mail attachment, but apparently only in black and white. Why and how can I get it to appear in color?
-
The user profile service has not logon. User profile cannot be loaded.
This showed on my computor someday on my connection, and I am the administrator. So now I can not change anything on computor or backups or add programs or delete. I did nothing before that happened. Any help would be appreciated. I tried safe mode,
-
How can I copy - paste MS Word in Cemturylink net E-mail as I did with Windows 7?
How can I copy - paste MS Word in Cemturylink net E-mail as I did with Windows 7?
-
Identical to the curve Smartphones Bluetooth blackBerry functionality?
Hi guys,. I had heard a rumor the BT on the tour will not allow transfer files photos, music or ringtones to other BT activate BlackBerry and phones, this is incorrect? I can't see their Telus or that restrict on this one and not the other previous v