An interesting situation with XML
Hi,
I have an XML from where my application receive data. Now, at
runtime using back end tachnology, i am updating the XML file. and
i want to see the changes will reflect in running application..?
I am not sure is it possible or not ?
But, still if any one can help !!
reload your xml using a changing query string so the xml file
is not retrieved from your browser's cache.
Similar Messages
-
Interesting problem with XML data populating CFGRID
Greetings all,
I ran into an issue yesterday and I'm not sure how to resolve it. I have an XML file I load to my MSSQL 2005 database, from there I populate my CFGRID with the fields from the database table, pretty straightforward right?
It is until I realized the customer name appears to have a comma, so it looks like this: Smith, John
It appears Cold Fusion (cfGrid?) is looking at the comma as a delimeter and taking the value after the comma and putting it into the next column, basically shoving everything to the right.
When I view the data in MSSQL Management Studio, it displays fine. Does CF get the recordset from the database as a comma delimeted list? Is this a known bug within CF?
I need to fix it obviously but I'm not sure if it's easier to do it from within CF or when I load the XML file into the database.
Any thoughts or guidance would be appreciated.It appears I have found my own solution...........ListChangeDelims and it works great. It removed
the comma from my text aligning everything correctly. -
Message queuing with XML transfer
Hi,
I am currently working on a project which aims to transfer XML document from a client to a server side application.
I plan to use HTTP as transport protocol and I would like to be sure that all messages sent are correctly received by the server side.
Does anyone have experience with this kind of project ?
Thank's.
Email: [email protected]<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Pascal Janin:
Hi,
I am currently working on a project which aims to transfer XML document from a client to a server side application.
I plan to use HTTP as transport protocol and I would like to be sure that all messages sent are correctly received by the server side...<HR></BLOCKQUOTE>
The B2B with XML sample app demonstrates some tools and techniques that might interest you: http://technet.oracle.com/tech/xml/info/index2.htm?Info&htdocs/XMLOne_Keynote/xb2bhome.html
Regards,
-rh
null -
Oraclexe and loading file with .xml suffix
Using the Oraclexe utility to load an xml file it errors with xml error load, and that is all. I created a table (create table xmload of xmltype). Here is a snippet of the xml content. What needs to be done to "get there from here".
<Response RequestID="1000000080000" Client="PERMS" RequestStatus="Passed" SessionAuthToken="sessionAuthToken" TimeSlot="09:20:00 18:00:00">
<Soldier Status="Passed" NumberOfDocuments="53">
<SSN>123456789</SSN>
<SoldierName>Doe Jonnie</SoldierName>
<Site>M</Site>
<Document DocStatus="Passed" Pages="1">
<DocType>CRS RES/NR</DocType>
<DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
<SID>G</SID>
<EffDate>2002/03/15</EffDate>
<AcceptDate>2002/04/29</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202804760</DocID>
</DocumentID>
</Document>
<Document DocStatus="Passed" Pages="2">
<DocType>679DA</DocType>
<DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
<SID>A</SID>
<EffDate>2002/04/30</EffDate>
<AcceptDate>2002/09/14</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202932534</DocID>
</DocumentID>
</Document>
<Document DocStatus="Passed" Pages="1">
<DocType>CRS RES/NR</DocType>
<DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
<SID>G</SID>
<EffDate>2000/04/14</EffDate>
<AcceptDate>2000/07/01</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202074950</DocID>
</DocumentID>
</Document>
</Document>
<Document DocStatus="Passed" Pages="2">
<DocType>679DA</DocType>
<DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
<SID>A</SID>
<EffDate>1999/04/04</EffDate>
<AcceptDate>1999/07/26</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>201773383</DocID>
</DocumentID>
</Document>
</Soldier>
</Response>For those who are interested, the problem come from the differents drivers used for files :
In Sunopsis, by default :
- driver : com.sunopsis.jdbc.driver.FileDriver
- url jdbc : jdbc:snps:file
In ODI
- driver : com.sunopsis.jdbc.driver.file.FileDriver
- url jdbc : jdbc:snps:dbfile
Problem solved. -
Custom action with XML type input and output parameter.
Hi,
I want to develop custom action with xml type input and/or output parameter.
Is there sample code for java side. How is the definition of input and/or output parameter and set/get methods?
does it need special .jar file to develop custom action like this?
Thanks.Cemil - yes, you can use XML data types. Use the class
com.sap.lhcommon.xml.XMLDataType
for your parameter type. Here is a snippet from a custom action we use to log XML (instead of just returning the #text node like the default logger does):
public class XMLLogger extends ActionReflectionBase
private String source;
private String eventType;
private String textMessage;
private XMLDataType xmlMessage;
public XMLLogger()
log = new Logger("UserLog");
source = DEFAULT_SOURCE;
eventType = TYPE_INFO;
textMessage = "";
xmlMessage = new XMLDataType();
public XMLDataType getXmlMessage()
return xmlMessage;
public void setXmlMessage(XMLDataType xmlMessage)
this.xmlMessage = xmlMessage;
public void Invoke(Transaction transaction, ILog ilog)
StringBuffer sb = new StringBuffer();
sb.append('[');
sb.append(source);
sb.append("] ");
sb.append(textMessage);
sb.append(XMLUtils.convertXmlToString(xmlMessage));
XMLUtils is a helper class we wrote - it's just a bunch of standard Java XML boilerplate code. The important part you need to know is XMLDataType.getDocument() will return an org.w3c.dom.Document.
I hope that was enough information to help.
-tim -
hi everybody,
I've a big problem with XML on Linux, in details I see my program stopping on Linux at the instruction
XMLReader xr = XMLReaderFactory.createXMLReader("org.apache.crimson.parser.XMLReaderImpl");
and it's strange because on Windows it runs and there aren't problems about permissions on files, does anyone knows what to do?
thanks in advance!
StefanoWhat happens on that line? I'm assuming you get some kind of error or exception.
Make sure the JAR file for Crimson is in your classpath. -
Problem with XML in APEX ORA-06502
i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
declare
l_XML varchar2(32767);
begin
select xmlElement
"iva",
xmlElement("numeroRuc",J.RUC),
xmlElement("razonSocial", J.RAZON_SOCIAL),
xmlElement("idRepre", J.ID_REPRE),
xmlElement("rucContador", J.RUC_CONTADOR),
xmlElement("anio", J.ANIO),
xmlElement("mes", J.MES),
xmlElement
"compras",
select xmlAgg
xmlElement
"detalleCompra",
--xmlAttributes(K.ID_COMPRA as "COMPRA"),
xmlForest
K.COD_SUSTENTO as "codSustento",
K.TPLD_PROV as "tpldProv",
K.ID_PROV as "idProv",
K.TIPO_COMPROBANTE as "tipoComprobante",
to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
K.ESTABLECIMIENTO as "establecimiento",
K.PUNTO_EMISION as "puntoEmision",
K.SECUENCIAL as "secuencial",
to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
K.AUTORIZACION as "autorizacion",
to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
xmlElement
"air",
select xmlAgg
xmlElement
"detalleAir",
xmlForest
P.COD_RET_AIR as "codRetAir",
to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
from ANEXO_COMPRAS P
where P.ID_COMPRA = K.ID_COMPRA
AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
xmlElement("secRetencion1", K.SEC_RETENCION_1),
xmlElement("autRetencion1", K.AUT_RETENCION_1),
xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
xmlElement("docModificado", K.DOC_MODIFICADO),
xmlElement("estabModificado", K.ESTAB_MODIFICADO),
xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
xmlElement("secModificado", K.SEC_MODIFICADO),
xmlElement("autModificado", K.AUT_MODIFICADO)
from SRI_COMPRAS K
WHERE K.ID IS NOT NULL
AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
AND K.ID BETWEEN 1 AND 25
).getClobVal()
into l_XML
from ANEXO_INFORMANTE J
where J.ID_INFORMANTE =:P3_MES
and J.RUC =:P3_ID_RUC
and J.ANIO =:P3_ANIO
and J.MES =:P3_MES;
--HTML
sys.owa_util.mime_header('text/xml',FALSE);
sys.htp.p('Content-Length: ' || length(l_XML));
sys.owa_util.http_header_close;
sys.htp.print(l_XML);
end;
Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
declare
l_XML CLOB;
begin
--Oculta XML
sys.htp.init;
wwv_flow.g_page_text_generated := true;
wwv_flow.g_unrecoverable_error := true;
--select XML
select xmlElement
from SRI_COMPRAS K
WHERE K.ID IS NOT NULL
AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
).getClobVal()
into l_XML
from ANEXO_INFORMANTE J
where J.ID_INFORMANTE =:P3_MES
and J.RUC =:P3_ID_RUC
and J.ANIO =:P3_ANIO
and J.MES =:P3_MES;
--HTML
sys.owa_util.mime_header('text/xml',FALSE);
sys.htp.p('Content-Length: ' || length(l_XML));
sys.owa_util.http_header_close;
sys.htp.print(l_XML);
end;
The error generated is ORA-06502: PL/SQL: numeric or value error+_
Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+JohannaCevallos07 wrote:
Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
The error generated is ORA-06502: PL/SQL: numeric or value error+_
Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
Thanks -
Report with XML as input !
Hello,
I am hv been trying to create a simple report with an XML input but by the end of it, it doesnt give any data on the report.
I tried it with XML + SQL input, it gave me a blank report and when I tried with a pure SQL input it did give data in the report. I enabled the trace option but couldnt get to the core of the problem.
My XML & XSD file are all valid, they are auto-generated.
The report doesnt give any error either.
Any clue what the problem could be ??
Regards,
Madhu.Post Author: ashdbo
CA Forum: Data Connectivity and SQL
I think it can be done by looking at Crystal Report XI.BUTHow can I do this programatically in Java ? Thanks,Ashok -
Excel Output problem with XML Publisher Report
Hi Experts,
I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
I have column 'quantity' with xml tag <?QUANTITY?>.
In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
Thanks in advance.Hi, try using this in your template.
<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override> -
Integration with XML Publisher
Has anyone found out or used the integration with XML Publisher? I am using the Sourcing product and it can generate report output based on XML Publisher directly from an OAF page. I was wondering how that is done.
Anyone know?I had a similar query - I heard that AR, GL, and AP (11i10) are not compatible with XML Publisher - is this true? I thought was the XML Publisher was independent of modules.
Pls share any experience with the Publisher tool - challenges, installation, comparison to Optio, etc.
Thanks, Vishnu -
How can I export a stylesheet (either CSS or XSLT) with XML from indesign?
Hi,
I am using indesign CS4. I want to export style sheet whether it is CSS or XSLT file with xml.
I try to get it but can't.
Also the XML i am exporting does not styles that has been applied by me while creating the file in Indesign.
Please help me out by telling me the way how can i get a stylesheet and also how can I embed that style sheet with XML so that my XML file looks similiar to the indesign file.
Thanks,
Choudhary Nafees AhmedI am using indesign CS4. I want to export style sheet whether it is CSS or XSLT file with xml.
CSS is not an XML style sheet, it's an HTML style sheet. "Export to HTML" will export an empty stylesheet for the paragraph and character styles. ID cannot convert its (very advanced) typographic capabilities to the (very limited) CSS notation, and thus it defaults to exporting the names only.
XSLT is not an XML style sheet either; it's a transformation format (http://www.w3.org/TR/xslt).
I try to get it but can't.
Also the XML i am exporting does not styles that has been applied by me while creating the file in Indesign.
XML Export does not export anything except the items you tagged with the Auto-tag feature, or you tagged yourself. If you need your styles tagged, use Map Styles to Tags (http://www.adobe.com/accessibility/products/indesign/mapping.html).
XML has almost nothing to do with styling -- ideally, XML describes document structure while styles describe formatting. -
How to Create a Table in Oracle with XML data type.
Dear ALL,
What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
Any help, direction, advise would be highly appreciated.
Thanks.Reffer to this Note.243554.1.
In a nut shell you will need to run catqm.sql -
Error while creating AW using DBMS_LOB with XML..
Hi All,
I am trying to create AW using DBMS_LOB package with XML,
while creating AW,i am facing the following error.find the code also below :
declare
xml_awcreate_clob clob;
xml_awcreate_st varchar2(4000);
begin
DBMS_LOB.CREATETEMPORARY(xml_awcreate_clob,TRUE);
dbms_lob.open(xml_awcreate_clob, DBMS_LOB.LOB_READWRITE);
dbms_lob.writeappend(xml_awcreate_clob, 48, '<?xml version = ''1.0'' encoding = ''UTF-8'' ?>');
dbms_lob.writeappend(xml_awcreate_clob, 43, '');
dbms_lob.writeappend(xml_awcreate_clob, 63, '<AWXML version = ''1.0'' timestamp = ''Mon Feb 11 13:29:11 2002'' >');
dbms_lob.writeappend(xml_awcreate_clob, 15, '<AWXML.content>');
dbms_lob.writeappend(xml_awcreate_clob, 25, ' <Create Id="Action41">');
dbms_lob.writeappend(xml_awcreate_clob, 19, ' <ActiveObject >');
dbms_lob.writeappend(xml_awcreate_clob, 163, ' <AW Name="NEW_XML_AW" LongName="NEW_XML_AW" ShortName="NEW_XML_AW" PluralName="NEW_XML_AW" Id="NEW_XML.AW"/>');
dbms_lob.writeappend(xml_awcreate_clob, 19, ' </ActiveObject>');
dbms_lob.writeappend(xml_awcreate_clob, 11, ' </Create>');
dbms_lob.writeappend(xml_awcreate_clob, 16, '</AWXML.content>');
dbms_lob.writeappend(xml_awcreate_clob, 8, '</AWXML>');
dbms_lob.close(xml_awcreate_clob);
xml_awcreate_st := sys.interactionExecute(xml_awcreate_clob);
end;
ORA-21560: argument 2 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 833
ORA-06512: at line 12
Any idea or thought on this would be appreciable.
Thanks in advance.
AnwarDid you change any of the text in the lob write statements ?
I believe you get this error if you increase the number of characters without increasing the 1st argument which looks as though it represents the number of characters -
Creating a template in Financials for using with XML Publisher..
to whom..
I hope someone can help please. I'm trying this process for the first time so please bear with me..
Ive got everything in place for producing PDF reports via XML Publisher through ORACLE Financials but I'm stuck on the last
part.
According to the notes (Publishing Concurrent Requests with XML Publisher - An Oracle White Paper Jan 2005) I've come
across, I need to update the concurrent program definition with a default template (when you submit a request, its in the
'upon completion' last section where theres an option to change or enter a template layout) yet this section is GREYED OUT.
Now according to my notes, to create a template you..
"Setting a Default Template....to select a default template in the Update Concurrent Program page available from the System Administration
responsibility (Note that this field is available only from System Administration. It is not available from the System
Administrator Forms interface)......."
My query is, where is this 'Update Concurrent Program page'..?
Thanks In Advance..
Steven
Edited by: user554089 on Sep 16, 2008 4:02 AMOK, so now I've found out how to 'default a template for EBS 11i' (System Administration > Concurrent > Programs - notice its Administration not Administrator)... but its unavailable.. in the the 'OnSite Setting' tab there was no box visible for me to enter a template filename. Does anybody know why this could be?
thanks,
Steven -
Adobe Form with XML interface cannot retrieve all data from SAP
hi all
I want to use the Adobe forms for the real estate module.
I had seen that adobe forms can have an interface with XML input and output as parameter.
In the interface type only the /DOCPARAMS an the DOCXML are INPUT parameters which are available.
No other INPUT parameter can be added to it.
When i try to retrieve the data in real estate there are some default function modules for retrieving the data from real estate.
But this function modules also are going to find out if the form which asks for this information has a IMPORT parameter
for the required data. For example, the SENDER data is retrieved, but before the default function module retrieve this data
the function module checks if the form has a INPUT parameter SENDER.
And that is not the case. And i cannot create the SENDER parameter to it, because this INTERFACE type does not allow it.
Does anybody know a solution herefore?
kind regards,
Anton PierhagenHi Bhaskar
It is a long time ago, almost 2 years.
I created my own custom development for calling the Adobe form. This custom development uses the correct function module interface with the IMPORT XML.
The XML which i sent as IMPORT PARAMETER to the form is also created by own custom development. Via the default XML class of SAP
So that was my solution
Kind regards,
Anton Pierhagen
Maybe you are looking for
-
Authentication freezing occasionally in OD
We're having problems with our two Xserve G4s which are both running OS X Tiger Server 10.4.6. Call the first server "filesrvr" and the other "mailsrvr" (which in addition to mail also provides web and file sharing services). Both are running behind
-
TS3587 EndNote plug-in still doesn't work
I successfully downloaded the plug-in but the bibliography option still doesn't show up on my Pages. What do I have to do to make it work?
-
error extraacting the product installer (error101) check for available disk space & try again
-
Where do I sync/back-up my iPhone3G (4.2.1) notes on my MacBookPro running 10.6.8 'WITHOUT' configuring Mail App ? I use my mbp for professional audio recordings and I do not wish to configure mail cause it'll just eat up space on my internal HDD wit
-
ECM change no mandatory only for specified Plants in CA01 and CA02
Dear All, I am in the process of activating the engineering change management for BOM and Routing. I did the necessary setting to work ECM. Now my problem is we have different plants and the ECM has to be activated only for 2 plants. To make change n