Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> xml / xsql possible setup problem
We encounter a strange problem in development of a new xml-based
application.
This might have something to do with setup so hopefully some of you can help
me a bit further on
the road:
I post a XML message as a request to query some data . The server reponses
well if the amount of data to respond is not too much. If amount the data
exceeds a certain limit we get an error.
Flow we use:
for development we use an html form,
request goes to the apache webserver,
calls an xsql page,
page does an insert into a table with a clob column
trigger on this table calls a procedure to process
the request -> output is prepared in a new table in xml-format
page does a query on the output table to prepare the answer
Details: Oracle 9.2.0.4 HP-UX 11.11 XDK 9.2.0.6
................
dum clob;
CURSOR cResponseContractsList
IS
select XMLELEMENT("CBSMessage",
XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" ,
'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi"
,'http://www.oracle.com/CBSResponse.xsd' as "xsi:noNamespaceSchemaLocation"
),
XMLELEMENT("Header", XMLELEMENT("Version", '1'), XMLELEMENT("Guid", '6BC096BB-0CE6-11D1-BAAE-00C04FC2E20D'), XMLELEMENT("Error", 0)
XMLELEMENT("Response", XMLELEMENT("Type", 'ResponseContractList'), XMLELEMENT("RequestID", 1), XMLELEMENT("Error", 0),
XMLELEMENT("Object", XMLELEMENT("ObjectID", OBJ_CD), XMLELEMENT("ObjectName", OBJ_NM), XMLELEMENT("ObjectRegion", rtrim(REG_NM)),
XMLELEMENT("Contract", XMLELEMENT("ContractID", CNTR_CD), XMLELEMENT("ContractName", nvl(OBJ_ECD,' ') || ' ' || OBJ_NM), XMLELEMENT("ContractCode", nvl(CNTR_ECD,' ')), XMLELEMENT("StartDate", to_char(min(RSTR_DTM_TOT),'yyyy-mm-dd')), XMLELEMENT("EndDate", to_char(max(RSTR_DTM_TOT),'yyyy-mm-dd')), XMLELEMENT("SupplierCode", OBJ_TARA_NR)
and ACC_ADR_OBJ = OBJ_CD and NAW_CD = ACC_ADR_NAW and REG_LAND = NAW_LAND and REG_STRK = NAW_STRK and REG_CD = NAW_REG
)))
from dual
))
) as "CBSResponse"
from dual;
BEGIN
OPEN cResponseContractsList;
FETCH cResponseContractsList into waarde;
CLOSE cResponseContractsList;
delete dummy;
insert into dummy (MSG) values (waarde);
END
..........................
Posting the xml
<?xml version="1.0" encoding="utf-8"?>
<CBSMessage xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.oracle.com/CBSrequest2.xsd">
<Header> <Version>1</Version> <Sender>CBS</Sender> <Receiver>IRIS</Receiver> <Guid>6BC096BB-0CE6-11D1-BAAE-00C04FC2E20D</Guid> </Header> <Request> <Type>RequestContractList</Type> <RequestID>26</RequestID> <Order>6</Order> <RequestContractList/> </Request> </CBSMessage>
Leads to a
OUTPUT WHEN THERE is too much data
- <page>
<xsql-status action="xsql:insert-request" rows="1" />
- <data>
<ERROR>oracle.xml.sql.OracleXMLSQLException: End tag does not match start
tag 'ObjectRegion'.</ERROR>
</data>
</page>
................................
<xsql:query null-indicator="yes" > select msg from dummy </xsql:query> </data> </page>
Hope you can help because we are getting desperate
Tnx,
Jeroen
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon Aug 30 2004 - 09:31:08 CDT
![]() |
![]() |