Problem for xml generation using DBMS_XMLGEN
Hi All,
i have problem during xml generation using Any help would be highly appreciate
how could we publish xml data using data base API DBMS_XMLGEN in oracle applications (APPS) i.e. at 'View Output" using
Any help would be highly appreciate.
Let me know if need more explanation, this is High priority for me.
Thanks and Regards,
[email protected]
Message was edited by:
user553699
You can set the null attribute to true , so that the tag appears in your XML
see the statement in Bold.
DECLARE
queryCtx dbms_xmlquery.ctxType;
result CLOB;
BEGIN
-- set up the query context
queryCtx := dbms_xmlquery.newContext(
'SELECT empno "EMP_NO"
, ename "NAME"
, deptno "DEPT_NO"
, comm "COMM"
FROM scott.emp
WHERE deptno = :DEPTNO'
dbms_xmlquery.setRowTag(
queryCtx
, 'EMP'
dbms_xmlquery.setRowSetTag(
queryCtx
, 'EMPSET'
DBMS_XMLQUERY.useNullAttributeIndicator(queryCtx,true);
dbms_xmlquery.setBindValue(
queryCtx
, 'DEPTNO'
, 30
result := dbms_xmlquery.getXml(queryCtx);
insert into clobtable values(result);commit;
dbms_xmlquery.closeContext(queryCtx);
END;
select * from clobtable
<?xml version = '1.0'?>
<EMPSET>
<EMP num="1">
<EMP_NO>7499</EMP_NO>
<NAME>ALLEN</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM>300</COMM>
</EMP>
<EMP num="2">
<EMP_NO>7521</EMP_NO>
<NAME>WARD</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM>500</COMM>
</EMP>
<EMP num="3">
<EMP_NO>7654</EMP_NO>
<NAME>MARTIN</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM>1400</COMM>
</EMP>
<EMP num="4">
<EMP_NO>7698</EMP_NO>
<NAME>BLAKE</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM NULL="YES"/>
</EMP>
<EMP num="5">
<EMP_NO>7844</EMP_NO>
<NAME>TURNER</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM>0</COMM>
</EMP>
<EMP num="6">
<EMP_NO>7900</EMP_NO>
<NAME>JAMES</NAME>
<DEPT_NO>30</DEPT_NO>
<COMM NULL="YES"/>
</EMP>
</EMPSET>
http://sqltech.cl/doc/oracle9i/appdev.901/a89852/d_xmlque.htm
Similar Messages
-
Hi all,
I am learning XPATH and XQUERY from the Book "Pro T-SQL 2008 Programmer's Guide" written by Michael Coles, (published by apress). I copied the Code Listing 12-8 FOR XML PATH Using XPath Node Tests (listed below) and executed it in my
SQL Server 2012 Management Studio:
--Coles12_8.sql // saved in C:/Documemnts/SQL Server Management Studio
-- Coles Listing 12-8 FOR XML PATH Using XPATH Node Tests
-- Retrieving Name and E-mail Addresses with FOR XML PATH in AdvantureWorks
-- 16 March 2015 0935 AM
USE AdventureWorks;
GO
SELECT
p.NameStyle AS "processing-instruction(nameStyle)",
p.BusinessEntityID AS "Person/@ID",
p.ModifiedDate AS "comment()",
pp.PhoneNumber AS "test()",
FirstName AS "Person/Name/First",
MiddleName AS "Person/Name/Middle",
LastName AS "Person/Name/Last",
EmailAddress AS "Person/Email"
FROM Person.Person p
INNER JOIN Person.EmailAddress e
ON p.BusinessEntityID = e.BusinessEntityID
INNER JOIN Person.PersonPhone pp
ON p.BusinessEntityID = pp.BusinessEntityID
FOR XML PATH;
I got the following error message:
Msg 6850, Level 16, State 1, Line 2
Column name 'test()' contains an invalid XML identifier as required by FOR XML; '('(0x0028) is the first character at fault.
I have no ideas why I got this error message. Please kindly help and advise me how to resolve this error.
Thanks in advance, Scott ChangHi Michelle, Thanks for your nice response.
I corrected the mistake and executed the revised code. It worked nicely.
I just have one question to ask you about the appearance of the xml output of my Co;les12_8.sql:
<row>
<?nameStyle 0?>
<Person ID="1" />
<!--2003-02-08T00:00:00-->697-555-0142<Person><Name><First>Ken</First><Middle>J</Middle><Last>Sánchez</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="2" />
<!--2002-02-24T00:00:00-->819-555-0175<Person><Name><First>Terri</First><Middle>Lee</Middle><Last>Duffy</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="3" />
<!--2001-12-05T00:00:00-->212-555-0187<Person><Name><First>Roberto</First><Last>Tamburello</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="4" />
<!--2001-12-29T00:00:00-->612-555-0100<Person><Name><First>Rob</First><Last>Walters</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="5" />
<!--2002-01-30T00:00:00-->849-555-0139<Person><Name><First>Gail</First><Middle>A</Middle><Last>Erickson</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="6" />
<!--2002-02-17T00:00:00-->122-555-0189<Person><Name><First>Jossef</First><Middle>H</Middle><Last>Goldberg</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="7" />
<!--2003-03-05T00:00:00-->181-555-0156<Person><Name><First>Dylan</First><Middle>A</Middle><Last>Miller</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="8" />
<!--2003-01-23T00:00:00-->815-555-0138<Person><Name><First>Diane</First><Middle>L</Middle><Last>Margheim</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="9" />
<!--2003-02-10T00:00:00-->185-555-0186<Person><Name><First>Gigi</First><Middle>N</Middle><Last>Matthew</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="10" />
<!--2003-05-28T00:00:00-->330-555-2568<Person><Name><First>Michael</First><Last>Raheem</Last></Name><Email>[email protected]</Email></Person></row>
<row>
<?nameStyle 0?>
<Person ID="11" />
<!--2004-12-29T00:00:00-->719-555-0181<Person><Name><First>Ovidiu</First><Middle>V</Middle><Last>Cracium</Last></Name><Email>[email protected]</Email></Person></row>
<row>
I feel this xml output is not like the regular xml output. Do you know why it is diffrent from the regular xml xml output? Please comment on this matter.
Thanks,
Scott Chang
What do you mean by regular xml document? Are you referring to fact that its missing a root element? if yes it can be added as below
USE AdventureWorks;
GO
SELECT
p.NameStyle AS "processing-instruction(nameStyle)",
p.BusinessEntityID AS "Person/@ID",
p.ModifiedDate AS "comment()",
pp.PhoneNumber AS "text()",
FirstName AS "Person/Name/First",
MiddleName AS "Person/Name/Middle",
LastName AS "Person/Name/Last",
EmailAddress AS "Person/Email"
FROM Person.Person p
INNER JOIN Person.EmailAddress e
ON p.BusinessEntityID = e.BusinessEntityID
INNER JOIN Person.PersonPhone pp
ON p.BusinessEntityID = pp.BusinessEntityID
FOR XML PATH('ElementName'),ROOT('RootName');
replace ElementName and RootName with whatever name you need to set for element as well as the root element
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Generate XML output using DBMS_XMLGEN.getxmltype and not from rdf
Hi,
I have a requirement to display output from a particular table in XL format. Out of all the known possible options, I am planning to use the XML publisher to generate XL output.
For the data source, instead of using the conventional way of creating XML data using rdf,I am planning to use DBMS_XMLGEN.getxmltype pl/sql procedure to generate the XML output. And from the output, call the template to generate the required Excel output.
Now, I am using the following code to generate XML output but am not sure how to proceed from here. I need to first print the XML data in the FND Output file after which I was planning to call the 'XML Report Publisher' (XDOREPPB) program and use the current request id to get the excel output but I am not able to find the way to print the XML data in the output file as:
fnd_file.put_line (fnd_file.output, l_xml_type); - is throwing an error as l_xml_type is an XML data output.
PROCEDURE xml_main (
errbuf OUT VARCHAR2
,retcode OUT VARCHAR2
,p_project_from IN VARCHAR2
,p_project_to IN VARCHAR2
AS
l_xml_type XMLTYPE;
BEGIN
SELECT DBMS_XMLGEN.getxmltype
('SELECT fnd_global.conc_request_id
,TO_CHAR (segment1)
,to_char(start_date,''MM/DD/RRRR'')
,to_char(xxmcc_project_details_pkg.current_profit_projection
(project_id),''999,999,990.90'')
,to_char(xxmcc_project_details_pkg.cost_to_date (project_id),''999,999,990.90'')
,''1''
FROM pa_projects_all
WHERE segment1 BETWEEN NVL (p_project_from, segment1)
AND NVL (p_project_to, segment1)')
INTO l_xml_type
FROM DUAL;
fnd_file.put_line (fnd_file.output, l_xml_type);
END xml_main;
Can anyone point me as to how to publish XML output using a PL/SQL procedure (DBMS_XMLGEN.getxmltype)
Thanks.Pl see if the example included in this presentation helps http://www.oracle.com/technology/products/applications/Events/OOW-2006/EBS/S281401_Sridhar_Bogelli.pdf
Also, you do not need to explicitly call XDOREPPB in later versions of XML Publisher. If you set up everything correctly (as described in the presentation above and the link below) the Output Post Processor is called automatically after the XML file is generated successfully.
Another excellent tutorial is at http://www.oracle.com/technology/obe/fusion_middleware/fusion/bi/xmlp_ebiz/index.html
HTH
Srini -
Add xmlns tag to Xml file using DBMS_XMLGEN
I am using Oracle Release 10.1.0.4.2 version .
I want to create a xml file according to some data available in the relational database tables. For the same i created object types and then view with the object types since data is scattered in many tables.
Then i used DBMS_XMLGEN.getxml to generate the xml with query from the object view.
Is there an option to add xmlns attribute to the generated xml file.
Please let me know if any additional details are needed.If you want to add the namespace declaration in the root element, I don't think it's possible with DBMS_XMLGEN directly.
You can instruct DBMS_XMLGEN to treat some object fields as XML attributes by prefixing them with "@" (e.g. "@my_attribute") but you cannot control that for enclosing elements.
A possible solution is to add it afterwards using XSLT, or insertChildXML, but apparently the latter is not available in your version.
However...
For the same i created object types and then view with the object types since data is scattered in many tables.Since the data comes from different tables, why not use SQL and SQL/XML functions to build the document?
It's straightforward, simple, and doesn't need additional objects.
select xmlelement("Departments",
xmlattributes('http://xmlns.example.org' as "xmlns")
, xmlagg(
xmlelement("Department",
xmlattributes(d.deptno as "Id")
, xmlelement("Name", d.dname)
, xmlelement("Employees"
, xmlagg(
xmlelement("Employee",
xmlattributes(e.empno as "Id")
, xmlforest(
e.ename as "Name"
, e.job as "Job"
) order by e.empno
) order by d.deptno
from scott.dept d
join scott.emp e on e.deptno = d.deptno
group by d.deptno, d.dname
;Output :
<Departments xmlns="http://xmlns.example.org">
<Department Id="10">
<Name>ACCOUNTING</Name>
<Employees>
<Employee Id="7782">
<Name>CLARK</Name>
<Job>MANAGER</Job>
</Employee>
<Employee Id="7839">
<Name>KING</Name>
<Job>PRESIDENT</Job>
</Employee>
<Employee Id="7934">
<Name>MILLER</Name>
<Job>CLERK</Job>
</Employee>
</Employees>
</Department>
<Department Id="20">
<Name>RESEARCH</Name>
<Employees>
<Employee Id="7369">
<Name>SMITH</Name>
<Job>CLERK</Job>
</Employee>
<Employee Id="7566">
<Name>JONES</Name>
<Job>MANAGER</Job>
</Employee>
<Employee Id="7902">
<Name>FORD</Name>
<Job>ANALYST</Job>
</Employee>
</Employees>
</Department>
<Department Id="30">
<Name>SALES</Name>
<Employees>
<Employee Id="7499">
<Name>ALLEN</Name>
<Job>SALESMAN</Job>
</Employee>
<Employee Id="7521">
<Name>WARD</Name>
<Job>SALESMAN</Job>
</Employee>
<Employee Id="7654">
<Name>MARTIN</Name>
<Job>SALESMAN</Job>
</Employee>
<Employee Id="7698">
<Name>BLAKE</Name>
<Job>MANAGER</Job>
</Employee>
<Employee Id="7844">
<Name>TURNER</Name>
<Job>SALESMAN</Job>
</Employee>
<Employee Id="7900">
<Name>JAMES</Name>
<Job>CLERK</Job>
</Employee>
</Employees>
</Department>
</Departments> -
Problem loading XML-file using SQL*Loader
Hello,
I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
Loader control-file:
LOAD DATA
INFILE *
INTO TABLE BATCH_TABLE TRUNCATE
FIELDS TERMINATED BY ','
FILENAME char(255),
XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
BEGINDATA
data.xml
The BATCH_TABLE is created as:
CREATE TABLE BATCH_TABLE (
FILENAME VARCHAR2 (50),
XML_DATA SYS.XMLTYPE ) ;
And the data.xml contains the following lines:
<?xml version="2.0" encoding="UTF-8"?>
<!DOCTYPE databatch SYSTEM "databatch.dtd">
<batch>
<record>
<data>
<type>10</type>
</data>
</record>
<record>
<data>
<type>20</type>
</data>
</record>
</batch>
However, the sqlldr gives me an error:
Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
If I remove the first two lines
"<?xml version="2.0" encoding="UTF-8"?>"
and
"<!DOCTYPE databatch SYSTEM "databatch.dtd">"
from data.xml everything works, and the contentents of data.xml are loaded into the table.
Any idea what I'm missing here? Likely the problem is with special characters.
Thanks in advance,I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?
-
Searching for XML tags using Oracle Text
I am using full text search to find documents based on a search text. It works fine for pdf, word documents, etc. However for XML documents, searching for a particular tag name does not find anything. Searching for text within tags works fine. Any thoughts?
Edited by: miyer on Feb 21, 2011 6:25 PMHi
Try adding the following variable to ucm config.cfg and then see if a new xml checkin returns the result for FT search :
TextIndexerFilterFormats=xml
Save the file , restart UCM and then test .
If the new checkin gets the results as expected then execute Collection Rebuild cycle to have the existing contents as well FT indexed to be searchable (for XML).
Thanks
Srinath -
Problem writing xml file using DOM
Hi,
I am trying to write a xml file using DOM. I am using xalan 2.5, xerces 1.4.4, jdk 1.3.1 in JRun 3 on windows.
The code where I get exception :
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer();
transformer.transform(new DOMSource(doc), new StreamResult("pr.xml"));
I get the runtime error as follows:
javax.servlet.ServletException: null
java.lang.NoSuchMethodError
at org.apache.xml.utils.DOM2Helper.getNamespaceOfNodeDOM2Helper.java:342)
at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:387)
at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:202)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:343)
Thinking it is because of classpath, I placed xalan 2.5, xerces 1.4.4 jar files in jrun admin lib directory and in server lib directory as well. Still getting the same error.
Any suggestion?
Thanks in advancexalan is included in JRun 4. However JRun 3 does not.
However I tried with the same code in JRun3 in different system. The error is completely different. I understand this is because of different version of files. trying to solve ;)
Here my new exception
javax.servlet.ServletException: org/w3c/dom/ranges/DocumentRange
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at com.cybell.appl.deliveryorder.cmd.CreateXMLDOFile.createFile(CreateXMLDOFile.java:73)
at com.cybell.appl.deliveryorder.cmd.CreateXMLDOFile.execute(CreateXMLDOFile.java:36)
at com.cybell.appl.framework.cmd.BaseCommand.start(BaseCommand.java:50)
at com.cybell.appl.framework.control.BaseController.service(BaseController.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatcher.java:34)
at allaire.jrun.servlet.Invoker.service(../servlet/Invoker.java:84)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) -
Problem for Report Generation Toolkit for excel 2000
Hi all,
Now I am Developing my program with Report Generation Toolkit 1.1.0 and Labview 7.1.
In my computer I am using Excel XP, and there is not any problem. But when I build to
a exe file, and use in a computer with Excel 2000, it didn't work.
And I try to check the source file in this computer, I found that there any some connection
error. And this is caused by the active X class. As I know Excel 2000 is using Microsoft Excel
Object Library 9.0, but i cannot find it in the list of active x. So it is using Microsoft Excel Object
Library with a very old verison. So in the property node there are missing functions, such as the
UsedRange in _Worksheet in the Excel_Get_Range.vi. However, In VBA, I can find the 9.0 Library.
Is it the problem of 9.0 library? How can I solve the problem? How can I upgrade the library to 10.0?
Thanks.
Regard,
RyanHi Mike,
Since my program is for all the staff in office, everyone may use it.
I cannot call the whole office to upgrade the excel to XP.
And I think Report Generation Toolkit is alway support Excel 2000,
since the old version of it is not support for Excel XP.
Regard,
Ryan -
Clientgen in WL 81 giving problems for stub generation from WL91 WSDL
Hi,
I am very new to this forum and new to Weblogic too.
Here is my problem. I generated a webservice from a Stateless Session bean using annotation in WebLogic 91. Used the "jwsc"/"wldeploy" to generate and deploy the webservice. Also generated the client stubs using "clientgen" in weblogic 91.
Created a small web application using a single jsp and servlet (the servlet is where i invoke the service).
Everything works fine till its weblogic 91.
Now the problem. I need to make the jsp work from Weblogic 81. So I am trying to create the client stubs from the service endpoint WSDL on WebLogic 91 by using the deployed webservice URL.
The clientgen in WL 81 is complaining that the "parameters" is already defined (Please see the error below".
I would assume that BEA would have tested this scenario as it should be a no-brainer. So why does the cleintgen in WL 81 complain. Is there any other step or way that I am missing. I have tried all sorts of things before posting to this forum (like 1. generating the stubs using WSDL2JAVA using axis -- WebLogic 81 gives a null pointer exception 2. generating the client stubs using "clientgen" in WL 91 and trying to compile using the jdk 1.4 and using in WL 81 -- complains that the couldnot find something like jax-rpc._._.ServiceImpl
Will be realy helpful if someone who had this kind of experience of someone from BEA can help me a little bit.
Thanks in advance to all for your time.
ERROR WHILE using CLIENGEN
build-client:
[clientgen] Generating client jar for http://localhost:7001/webservice/MAC/Metho
dsAccessControl?WSDL ...
[clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfint_literal i
ncompliantly with JAX-RPC, mapping to a Java array of .int
[clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfMethodUserTO_
literal incompliantly with JAX-RPC, mapping to a Java array of com.bah.elexnet.s
erver.to.MethodUserTO
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:15: par
ameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchiveUse
r,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
[clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:21: par
ameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUserRole
s,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
[clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:27: par
ameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com.bah.
elexnet.methods.holders.GetUsersResponseHolder)
[clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:33: par
ameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserRoles,
com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
[clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:39: par
ameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUser,co
m.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
[clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:45: par
ameters is already defined in changeSystemPassword(com.bah.elexnet.methods.Chang
eSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordResponseHold
er)
[clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
onseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:51: par
ameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUser,com.
bah.elexnet.methods.holders.DeleteUserResponseHolder)
[clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:57: par
ameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUserRoles,
com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
[clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:20
: parameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchi
veUser,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
[clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:39
: parameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUse
rRoles,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
[clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:58
: parameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com
.bah.elexnet.methods.holders.GetUsersResponseHolder)
[clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:77
: parameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserR
oles,com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
[clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:96
: parameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUs
er,com.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
[clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:11
5: parameters is already defined in changeSystemPassword(com.bah.elexnet.methods
.ChangeSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordRespon
seHolder)
[clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
onseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:13
4: parameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUse
r,com.bah.elexnet.methods.holders.DeleteUserResponseHolder)
[clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:15
3: parameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUser
Roles,com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
[clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] 16 errors
[clientgen] java.io.IOException: Compiler failed executable.exec
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:470)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:328)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:336)
[clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
leFiles(CompilerHelper.java:80)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
eStubs(ClientGenImpl.java:627)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
teStub(ClientGenImpl.java:572)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:409)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/Projects/OtherProjects/WL/soaws/build/build.xml:122: weblogic.webservice
.tools.build.WSBuildException: Compiler failed executable.exec - with nested exc
eption:
[java.io.IOException: Compiler failed executable.exec]did you get a solution for this issue. I am trying to generate a stub to connect to a webservice i created by exposing my stateless session EJB as a web service, using annotations. I want to create a client stub using the clientgen from weblogic 81. I am unable to do this, do you have any solution to this.
-
Help needed for report generation using java technologies
May i get some idea about report generation api available. some report generation tools that can be downloadble. can you please suggest how to use scheduling the printers or report generation by scheduling.
e.g. for one of my school project which generate reconciliation report (banking project) we add in a letterheader and the rest of the information presented below.
but there is some problem here.
either you "catch" no. x row where the printing will be trancated then prevented it from trancated by formatting your pages such that data will not be printed in that region. -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Problem in spool generation using SUBMIT statement
Hi Experts,
I am facing a problem in getting the spool no using the SUBMIT statemet.I am exporting an internal table with some data and then importing the same in another dummy program to get the ALV list output.This dummy program is called using the SUBMIT TO SAP-SPOOL statement.
The code is as follows:
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
The trouble is the submit statement is not calling the dummy program in this case.What can be the problem here and how can it be resolved.In my dummy program I am simply using the exported table to convert into list display so as to get a spool no. for it.
My objective is to get the spool no. for this sothat I can convert this spool to PDF.
Thanks and Regards
Abhishek
Edited by: abhishek singh on Oct 27, 2009 9:26 PM
Edited by: abhishek singh on Oct 27, 2009 9:27 PM
Edited by: abhishek singh on Oct 27, 2009 9:29 PM
Edited by: Rob Burbank on Oct 27, 2009 4:41 PMHi Experts ,
I am posting the code again:
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_name
IMPORTING
jobcount = lv_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
archive_mode = gc_spool_print "For print = '1'
no_dialog = abap_true
IMPORTING
out_parameters = lv_print_parameters
valid = lv_valid_flag
EXPORT fui_fin_split TO MEMORY ID 'CUSTOMER'.
SUBMIT zvrr9333_dummy TO SAP-SPOOL
SPOOL PARAMETERS lv_print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB lv_name NUMBER lv_number
AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_number
jobname = lv_name
strtimmed = abap_true "Immediate Start
MESSAGE 'Spool not created'(e15) TYPE gc_success.
ENDIF.
SELECT jobname
jobcount
stepcount
listident
FROM tbtcp
INTO TABLE gi_spool
WHERE jobname EQ fuv_name
AND jobcount EQ fuv_number.
IF sy-subrc EQ 0.
READ TABLE gi_spool INTO lw_spool INDEX 1.
fcv_spoolno = lw_spool-listident.
ENDIF.
SELECT jobname
jobcount
stepcount
listident
FROM tbtcp
INTO TABLE gi_spool
WHERE jobname EQ fuv_name
AND jobcount EQ fuv_number.
IF sy-subrc EQ 0.
READ TABLE gi_spool INTO lw_spool INDEX 1.
fcv_spoolno = lw_spool-listident.
ENDIF. -
Problem transforming XML/XSL Using Xalan
Hi, I am using the xalan apis to transform XML/XSL in a servlet..My servlet code is like...
response.setContentType("text/html; charset=UTF-8");
// Output goes in the response stream.
PrintWriter out = response.getWriter();
boolean environmentOK = (new org.apache.xalan.xslt.EnvironmentCheck()).checkEnvironment (out);
try
TransformerFactory tFactory = TransformerFactory.newInstance();
// Get the XML input document and the stylesheet.
Source xmlSource = new StreamSource("D:\\DATA\\jrun\\test\\test.xml");
Source xslSource = new StreamSource("D:\\DATA\\jrun\\test\\test.xsl");
// Generate the transformer.
Transformer transformer = tFactory.newTransformer(xslSource);
// Perform the transformation, sending the output to the response.
transformer.transform(xmlSource, new StreamResult(out));
I am getting the error ..
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXException: Namespace not supported by SAXParserjavax.xml.transform.TransformerConfigurationException
That's why I have added the line..
boolean environmentOK = (new org.apache.xalan.xslt.EnvironmentCheck()).checkEnvironment (out);
But that gives me the following error diagnostic information...
ERROR.version.DOM=ERROR attempting to load DOM level 2 class: java.lang.NoSuchMethodException
I have put all the 3 required classes, xml-apis.jar, xercesImpl.jar and xalan.jar in my application servers classpath..
Please let me know what I am doing wrong..and how this can be fixed.
Thanks
Surajithey Surajit
Your code is unable to create a transformer from a factory instance.
I would check why it is not creating the Transformer.On my win32 system i usee two forward slashes..to identify the file path
D://xyz//abc....instead of D:\\...i wonder if thats one reason why your code is not able to create a transformer based on the StreamSource u create for the file paths.
Code i use..that works
javax.xml.transform.TransformerFactory tFactory =
javax.xml.transform.TransformerFactory.newInstance();
javax.xml.transform.Source xmlSource = new javax.xml.transform.stream.StreamSource (xmlInputSource);
javax.xml.transform.Source xslSource = new javax.xml.transform.stream.StreamSource
(xslInputSource);
// Generate the transformer.
javax.xml.transform.Transformer transformer = tFactory.newTransformer(xslSource);
// Perform the transformation, sending the output to the response.
transformer.transform(xmlSource,new javax.xml.transform.stream.StreamResult(out));
I used jaxp-1.2 with tomcat 4.1.12
Hope that helps. -
Problem With Invoice Generation using code
I have some sales orders - I put an button on the below of the sales order so that it will create the invoice through code. I CANT USE COPYTO option of sales order since i am adjusting some values while pressing the button.
What i have done....
1. Using get by key i read values from sales order.
2. Using objects of sales order and invoice i am binding values.
-- On Header
> Card code
> Card Name
> Date
OnLine
> Item Code
> Whs Code
> Quantity
> UnitPrice ( Calculated using the values in the sales order)
> Tax Code
Problem i have...
1. The amount till Total LC is correct. BUT NOT THE TAX AMOUNT.
2. When i checked the Tax Base amount -> Its different form the TOTAL LC column.
3. Then i noticed that - in header i saw some discount amount , but the discount % is null.
4. I have not given any discount on BP or any special price for BP.
5. I tried to put 1% discount on header but still the discount amount is more than 1%.
Please someone help me soon.
UPDATE TO MY ABOVE QUESTION....
I found that error was causing by the option i have activated - the Round off to one in financial set up...is there any other method for the round off with out using the setup...
Edited by: vibinvarghese on May 23, 2011 1:09 PMSome one find me an solution...this is causing me lot of problems now...
-
User defined Metadata for XML DB using Java API
I have been looking through and reading the documentation for Oracle XML DB. I am trying to find out if there is a way to create user define metadata using a Java API. when I look in the XML "Java API Reference (Javadoc)" setProperty(java.lang.String name, java.lang.String value, int type) it states: Sets the specified (single-value) property to the specified value. If the property does not yet exist, it is created. I have tried several ways to do this and have not been successful. I have looked for java examples in the XML DB Developer's Guide, XML Developer's Kit Programmer's Guide.
Is there a good example out there as to how to create user-defined metadata that can be populated using the JCR API.
Thanks in advance.We need to create the 2 xml schemas, one for request and the other for response of selected operation in the WSDL.
This we need to do dynamically. There will not be any java classes generated, the xsd files need to be created on the fly.
Please suggest xml schema creation in this sequence.
Maybe you are looking for
-
HP Officejet Pro 8500 A909g Series capable of printing labels on the CD?
I have Sure Thing label software that can print label information on a printable CD if the printer has the capability. Not able to find any HP doc confirming whether it does or does not. Anyone know for sure? Thx.
-
I had to get a replacement phone and have therefore lost my contacts. Does anyone know how I can get them back considering that I backed up my old phone on my laptop and not iCloud?
-
How can i change the windows structure into mac structure
Before i had a mac i used my iPod on a windows computer. When i connect my iPod to my mac i see that i can only repair my iPod. I can't update . It sais that only Ipods with a mac structure can be updated. So is there a way to change the windows stru
-
Wondering if Business Catalyst could work for me
Dear BC Community, I want to build a site for my business that will utlisise the AWS EC2 computing power - can a BC hosted site interact with the AWS EC2? I have other questions but if this is not possible I can stop here, so for now I'd appreciate
-
Error Correction for iTunes?
When importing CDs into iTunes there is an option for Use Error Correction. There is a minimal explanation under Help as to what it does but not as to how. Does anyone know how the Error Correction process works. Is there a check against a data base