The XML descripter about Cluster is Right??
I wrote a stateless session bean.And I would put it in clustering environment in
weblogic 6.1.I added the fllowing tags in weblogic-ejb-jar.xml:
<weblogic-enterprise-bean>
<ejb-name>sb_FailOverAndCluster</ejb-name>
<stateless-session-descriptor>
<stateless-clustering>
<stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
<stateless-bean-load-algorithm>round-robin</stateless-bean-load-algorithm>
<stateless-bean-call-router-class-name>beanRouter</stateless-bean-call-router-class-name>
<stateless-bean-methods-are-idempotent>true</stateless-bean-methods-are-idempotent>
</stateless-clustering>
</stateless-session-descriptor>
<jndi-name>sb_FailOverAndCluster</jndi-name>
</weblogic-enterprise-bean>
When I compiled it in Jbuilder6 there was no error.But when I deployed it into
weblogic,and selected the cluster this EJB belong,the error happened.Who can tell
me if my xml descripter is wrong??
Can you post the exact error.
-Sabha
"Sunrise" <[email protected]> wrote in message
news:3c8c18e3$[email protected]..
>
> I wrote a stateless session bean.And I would put it in clustering
environment in
> weblogic 6.1.I added the fllowing tags in weblogic-ejb-jar.xml:
> <weblogic-enterprise-bean>
> <ejb-name>sb_FailOverAndCluster</ejb-name>
> <stateless-session-descriptor>
> <stateless-clustering>
> <stateless-bean-is-clusterable>true</stateless-bean-is-clusterable>
>
<stateless-bean-load-algorithm>round-robin</stateless-bean-load-algorithm>
>
<stateless-bean-call-router-class-name>beanRouter</stateless-bean-call-route
r-class-name>
>
<stateless-bean-methods-are-idempotent>true</stateless-bean-methods-are-idem
potent>
> </stateless-clustering>
> </stateless-session-descriptor>
> <jndi-name>sb_FailOverAndCluster</jndi-name>
> </weblogic-enterprise-bean>
>
> When I compiled it in Jbuilder6 there was no error.But when I deployed
it into
> weblogic,and selected the cluster this EJB belong,the error happened.Who
can tell
> me if my xml descripter is wrong??
Similar Messages
-
Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file? I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types. (Ideally, I would like to do this with a C header file only.) Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on. Unfortunately, this capability has not been created yet. Has anyone done something like this before? Thanks in advance for the help.
Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
Solved!
Go to Solution.smercurio_fc wrote:
Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
You can try LabVIEW scripting, though be aware that this is not supported by NI.
Wow! Thanks for the quick response! We would use this cluster as a fixed data structure. No need to change the structure during runtime. The cluster would be a cluster of clusters with multiple levels. There would be not pattern as to how deep these levels would go, or how many elements would be in each. Here is the application. I would like to be able to autocode a Simulink model file into a DLL. The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object. I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink). To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically. Right now I can do everything but the auto creation of the cluster. I can manually build the cluster to match the Simulink model bus structure and it runs fine. But this is only for an example model with a small structure. Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks! -
Unable to recreate replica as I cannot delete the xml files for the old VM on Hyper-v Cluster
My setup
There are 2 sites each running a Hyper-v 2012-R2 cluster comprising of 5 nodes each.
All the machines are in a HA state and stored on the shared clustered resource.
Initially we had replication working and it was replicating all the servers from Site A to Site B
There were some replication issues which needed me to stop the replication and redo it again, in doing so I firstly removed replication on Fail-over cluster manager on Site A and did the same on Site B.
On one of the servers I had to remove the VM, although the VM config and Disks still remain on the Site B Cluster.
I was trying to recreate the replica but it always fails with the following error :
Hyper-v failed to enable replication for virtual machine xxxxxxxx operation aborted (0x80004004).....
I followed an article to stop the Hyper-V Virtual Machine Management Service and try delete the file,
When i tried to stop the service it would restart automatically and I was unable to delete the file. I put the service in disabled which kept it stopped however I was still unable to delete the files. I also tried to get File assassin which can help delete
and clear locked files but it too was unable to delete it while the service was running or stopped as well as its additional mode whereby it will delete it on next reboot.
The Article Https://social.technet.microsoft.com/Forums/windowsserver/en-US/4c4f2535-81ee-4a21-a920-b5632de2be37/hyperv-old-vm-folders-cannot-be-deleted?forum=winserverhyperv
makes mention of stopping another service Hyper-V
Image Management Service but I am unable to find it on 2012-R2 server.
I have also tried to put the additional nodes in a paused drained roles state leaving only one node as the active one but it still will not let me delete the VM config
files, without removing those files I cannot re-initiate the Replication.
Any assistance would be greatly appreciated.Can you storage migrate any other vms or resources off of the CSV that contains the XML file in question? If so you may be able to then take that CSV offline, remove it from available storage, re-add as available storage, and add to CSV Volumes. Maybe
that will clear your lock. -
is the new iPad and iPod touch 5g have exactly the same iSight camera. because i heard read a lot in the apple site about the new iPad camera but the description for the new iPod touch is not so good IN TERMS OF CAMERA. so please help me. coz i want to know is ipod touch 5g giving the new ipads like high clarity mages
The ipod touch 5g and the new ipoad both have 5-mega pixal cameras.
-
Using informations about the XML Data Set in *.js
Dear Users,
I hope I am able to explane my problem correctly:
I wonna create a fade effect with various pictures. They don't should blend to 0 - I found a js script that lets the pictures fade from one to the other like this: www.sv-guenther.de
What this script needs is the number of pictures. I put the picture links into an XML file. Everything works as long as write the number or length of the picture children manually.
I tried to read out the length by using the ds_RowCount option. This works fine as long as I use this in HTML context like this:
<div spry:region="ds1" ><script type="text/javascript"> alert({ds_RowCount});</script>{ds_RowCount}</div>
Both works: The alert shows the number 21 AND you can read the "21" and not {ds_RowCount}.
okay, but how do I use the "21" integer in a script block in the head area? like this:
<head>
<script type="text/javascript">
var x = {ds_RowCount};
</script>
</head>
I tried it in different ways: var x = '{ds_RowCount}'; or spry:....
As you can see: I am afraid my scripting knowledge is not the best - like my English is...
Sorry and thank you very much for your help! - any kind of help
best regards from Bonn, Germany
ThorstenDear Ben,
if you would see me, you wouldn't laugh anymore, you would cry -) - but you are in DownUnder - this would look like I am laughing for you - wouldn't it?
Thank yoou so much for remembering me. I have been reading your post about this topic (blend a picture). Once somebody asked the same (or almost the same) like I did yesterday. But the difference is, that if you blend a text to 0 it is big diference blending a picture - in my mind. I would love to reduce the opacity from one picture when the next picture is already behind it. So it looks like a smooth fade in fade out, without displaying the background.
I found a quite good code example for this:HERE
To make it as easy as possible for me I tried to include the number of the pictures straight into the js code. in the meantime I found the correct code option for this: What I was looking for was: getData() and if I combine it with an observer to wait for the "onPostLoad" everything works fine. I am ashamed that I asked first and then lokked into the SPRY API - Sorry!
Everything works fine? No not yet - unfourtunally. So I am pleased to get the chance to ask a second time:
Let's say I have more than one picture and more than one topic. So my XML looks like this:
<leistungen>
<inhalte name="Bauvorhaben">
<inhalt name="Bautechnische Beratung">
<texte>
<text>Beurteilung der Baubeschreibung, Beratung zur Ausführungsplanung</text>
</texte>
<bilder>
<bild></bild>
</bilder>
</inhalt>
<inhalt name="Baubegleitende Qualitätsüberwachung">
<texte>
<text>Stichprobenhafte Kontrollen der Bauausführung zur Gewährleistung der Einhaltung anerkannter Regeln der Bautechnik und vertraglicher Vereinbarungen</text>
</texte>
<bilder>
<bild>3867</bild>
</bilder>
</inhalt>
<inhalt name="Baumängel">
<texte>
<text>Feststellung und Beurteilung von Baumängeln, Ursachenermittlung,Sanierungsempfehlung, Schätzung der Instandsetzungskosten</text>
</texte>
<bilder>
<bild>2857</bild>
<bild>3612</bild>
</bilder>
</inhalt>
<inhalt name="Beweissicherung">
<texte>
<text>Dokumentation von Schäden an Bestandsgebäuden im Einflußbereich von Bauvorhaben, Beurteilung von Schadensansprüchen</text>
<text>Bauzustandsdokumentation, Leistungsfeststellung</text>
</texte>
<bilder>
<bild>1176</bild>
<bild>154</bild>
</bilder>
</inhalt>
<inhalt name="Abnahme von Bauleistungen / Abnahmebegleitung">
<texte>
<text>Einfamilienhäuser</text>
<text>Mehrfamilienhäuser</text>
<text>Wohnanlagen</text>
<text>Bürogebäude</text>
</texte>
<bilder>
<bild>2485</bild>
<bild>3485</bild>
<bild>3481</bild>
<bild>3460</bild>
</bilder>
</inhalt>
<inhalt name="Schiedsgutachten">
<texte>
<text>Rechtsverbindliche Beurteilung von Bauprozessen und Gewerken zur Konfliktvermeidung und -lösung</text>
</texte>
<bilder>
<bild>7080</bild>
</bilder>
</inhalt>
</inhalte>
<inhalte name="Bestandsgebäude">
<inhalt name="Beweissicherung">
<texte>
<text>Dokumentation von Schäden an Bestandsgebäuden im Einflußbereich von Neubauten, Beurteilung von Schadensansprüchen</text>
</texte>
<bilder>
<bild>1176</bild>
</bilder>
</inhalt>
<inhalt name="Gebäudeschäden">
<texte>
<text>Feststellung und Beurteilung von Gebäudeschäden, Ursachenermittlung, Sanierungsempfehlung, Kostenschätzung</text>
<text>Bautechnische Beratung beim Kauf einer Bestandsimmobilie</text>
</texte>
<bilder>
<bild>2108</bild>
<bild>4004</bild>
<bild>1387</bild>
<bild>3488</bild>
</bilder>
</inhalt>
</inhalte>
</leistungen>
First I create an new object
var ds1 = new Spry.Data.XMLDataSet("xml/leistungen.xml", "leistungen/inhalte/inhalt/texte");
So the dsR = ds1.getData() gives me a dsR.length = 8 - correct - because this XML has got 8 <texte> nodes. But some of these <texte> nodes have more than one <text> node. If I asked for the contet of the fifth node dsR[4]["text"] it gives me back "Bürogebäude" = the last sub node content. I wished I could catch the first, second, third as well. Just like a spry:repeat - do you understand?
I figured out that it doesn't help to extend the string like
dsR[4][0]["text"] or dsR[4][0][0].
As far as I understood the Spry framework flattens the XML like a table. So I thought that there might be just in this raw, in the actual column just another object (not a string) to be found.This object I could touch or open with square brackets. Like
dsR[0]["texte"][0]
- but: I can't!
But this would mean, that straight in js I could always only catch the first node value??? I must be wrong!!! But I don't know were!
Dear Ben, Dear Guys out there - is this to difficult what I am looking for or am I blind?
thank you so much for helping me out here - again! -
How can i print the description about the field?
dear folks
i want to develop a report in that i want to display all fields in MM03 for all views.
there i want to display first Field description (not field name), then field value.
ie, for MATNR:
Material Number = xxxx (value)
for SPART:
Division = d1.
how can i print the description about the field?CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = 'MARA'
FIELDNAME = 'MATNR'
TABLES
dfies_tab = t_dfies
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
you will get all the info for the field in t_dfies in that u have the field description also
run the above FM from se37 and pass tabname = MARA and fieldname = MATNR
see the results in DFIES_TAB in internal table -
Description about the generation of a documentation to selfwritten Program?
Hello,
I want to write a documentation to my ABAP-Programm but I don't find the documentation/description to do this. Is there a description in the official online-help or a tutorial about this. I want to know something about the symbols &PREREQUISITES&, &Titel& and the other documentation-symbols too. Thank you.
Regards, Lars.Hi Lars,
Pls follow these steps for ABAP report documentation.
Goto SE38.
Enter the program name.
Select the 'documentation' radio button.
Press Change
In the next screen you can enter your documentation.
This will appear in the selection screen of the report. There will be an information button on the application toolbar.
Thanks
Vinod -
About the Hierarchy description change to chinese
Hi,
About the Hierarchy,
I want to display the Hierarchy description change to chinese,
I change the Hierarchy description to chinese in Discoverer Administrator,
But the Hierarchy description still show column name in Discoverer Viewer,
If I change the Hierarchy attribute name to chinese in Discoverer Administrator,
and the Hierarchy description still show column name in Discoverer Viewer,
It's important issue for my end user,
so anyone can help me ?
your sincerely,
YehHi Bernhard,
Answer to your Question:
The original setting :
ANLB-PERFY = 12.
T090NA-XDAILY= " "
some one changed the Dep Key with
T090NA-XDAILY= X
I made the below change:
T090NA-XDAILY= " ".
then there is no error for the Asset.
Please let me know how to identify all the assets that have this error. You have mentioned RAAFAR00 'Recalculate depreciation'.
so my understanding is if i run the program the warning for all the assets appear.
Does calculation of Depreciation AFAB report the assets with errors.
Thanks,
Raja. -
FinalCut XML: question about the Center parameter
Hi, I'm writing a script that will massage some of the data in the XML file export from a sequence. I'm trying to understand the settings for the Center parameter in the Viewer.
If my Center point in the Viewer is 1 horizontal and 100 vertical, that corresponds to something like this in the XML:
<name>Center</name>
<keyframe>
<when>147</when>
<value>
<horiz>0.000347222</horiz>
<vert>0.0520833</vert>
</value>
</keyframe>
Any idea how those horiz/vertical numbers correspond to the values 1 and 100?
thanks,
ScottHi Meg, actually looking at this again I'm still confused. In my new sequence which is 1620x1080, I have vertical keyframes 0, 16, 34, 60, 79, 104 and 212. In my XML, these correspond to:
0 : 0
16 : <vert>0.00833333</vert>
34 : <vert>0.0177083</vert>
60: <vert>0.03125</vert>
79: <vert>0.0411458</vert>
104: <vert>0.0541667</vert>
212: <vert>0.110417</vert>
However, if I divide each of the left-hand values above by 1080, I get different numbers:
16 / 1080 = .0148
34 / 1080 = .0314
60 / 1080 = .0555
79 / 1080 = .0731
104 / 1080 = .096
212 / 1080 = .196
So, I'm still not understanding where the <vert> numbers are coming from. Am I missing something? I understand the zero point is the center of the frame, so maybe that affects the calculations as well.
As you can probably tell I'm trying to calculate the position of the same clip in the larger 1620x1080 frame, so it matches the relative position in the 720x480 frame. (I've changed the Scale by multiplying it by 2.25, which is easy.)
I appreciate your help.
Scott -
About pageHeader in the xml + report
How can I sel logo to the page header of the report?
I'm using with JasperReport & iReport.
like logo company..Can you compare the XML tags from your file with the following example:
<function name="f_1formattrigger">
<textSource>
<![CDATA[function F_1FormatTrigger return boolean is
begin
null;
return (TRUE);
end;]]>
</textSource>
</function>
As I can see , in your file <textSource> tag is missing.
Regards -
Attatched is an image of the requested result. I'm new to Dw so this might be an easy bit of code, but with research I haven't been able to find an answer.
Ideally, the numbers in the middle are links (centered on the page); and the text is a description of the link which floats to either side of the links, but is not necessarily centered; nor linked.
I would really appreciate the help of someone more knowledgeable. Thanks in advance.
The code I'm working on follows the image.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>design communications</title>
<style type="text/css">
body,td,th {
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: lighter;
font-size: 10px;
color: #FB6145;
body {
background-color: #FFFFFF;
.strike {
text-decoration:line-through;
.links {
color: #FB6145;
text-decoration: none
a:visited {
text-decoration: none;
color: #FFA493;
a:hover {
cursor: none;
text-decoration: none;
a:active {
text-decoration: none;
.back-arrow{
color: #FB6145;
text-decoration: none;
font-size: 14px;
</style>
<link rel="shortcut icon" href="images/e_rimoldi_favicon_02.ico" type="image/x-icon" />
<style type="text/css">
</style>
</head>
<body>
<p><a href="question mark/prefix_0_0.html">? </a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div class="links">
<p align="center">| <a href="works_03_01_perspective.html" id="01"
onmouseover=
"document.getElementById('02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>01</a> |</p>
<p align="center">| <a href="works_03_03_plan.html" id="02"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>02</a> |</p>
<p align="center"> | <a href="works_03_02_section.html" id="03"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>03</a> |</p>
<p align="center">| <a href="works_03_04_mapping.html" id="04"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('back-arrow').className='links';"
>04</a> |</p>
<div class="back-arrow">
<p align="center"><a href="works index_1.0.html" id="back-arrow"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';"
>«</a></p>
</div>
</body>
</html>hey marty,
Perhaps this updated code will help clarify. I want the links to be centered on the page. But the link descriptions to float to either side? Does that make sense?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>design communications</title>
<style type="text/css">
body,td,th {
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: lighter;
font-size: 10px;
color: #FB6145;
body {
background-color: #FFFFFF;
.strike {
text-decoration:line-through;
.links {
color: #FB6145;
text-decoration: none
a:visited {
text-decoration: none;
color: #FFA493;
a:hover {
cursor: none;
text-decoration: none;
a:active {
text-decoration: none;
.back-arrow{
color: #FB6145;
text-decoration: none;
font-size: 14px;
</style>
<link rel="shortcut icon" href="images/e_rimoldi_favicon_02.ico" type="image/x-icon" />
<style type="text/css">
</style>
</head>
<body>
<p><a href="question mark/prefix_0_0.html">? </a></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div class="links">
<p align="center">| <a href="works_03_01_perspective.html" id="01"
onmouseover=
"document.getElementById('02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>01</a> | meddling</p>
<p align="center"> kongenshus | <a href="works_03_03_plan.html" id="02"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>02</a> |</p>
<p align="center"> | <a href="works_03_02_section.html" id="03"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '04').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('04').className='links';
document.getElementById('back-arrow').className='links';"
>03</a> | design communications</p>
<p align="center"> green river | <a href="works_03_04_mapping.html" id="04"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( 'back-arrow').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('back-arrow').className='links';"
>04</a> | utah</p>
<div class="back-arrow">
<p align="center"><a href="works index_1.0.html" id="back-arrow"
onmouseover=
"document.getElementById('01').className='strike';
document.getElementById( '02').className='strike';
document.getElementById( '03').className='strike';
document.getElementById( '04').className='strike';"
onmouseout=
"document.getElementById('01').className='links';
document.getElementById('02').className='links';
document.getElementById('03').className='links';
document.getElementById('04').className='links';"
>«</a></p>
</div>
</body>
</html> -
How do i prevent getting a xml declaration in the xml response
Hi,
I am using a soap call to access a webservice via plsql.
The xml response from the webservice starts as follows
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">..............
I want to find ways to
1. either prevent the xml tag <?xml version='1.0' encoding='UTF-8'?> from being returned in the response.
2. or somehow convert the entire response to a string and remove it by substr (not sure about this)
The issue i am facing is that when i run a xmltype.extract on the xml to get a particular node i am getting the
ORA-31013: Invalid XPATH expression
when i remove the tag from the response (using hardcoded values) i get the right values back.
Any suggestions are welcome.
Regards
kpillaiHi,
The code extract with hardcoded values looks like this. Please note that i added quotes in the xml statement
'<?xml version=''1.0'' encoding=''UTF-8''?>which is not the case when oracle returns the xml and i guess thats the whole issue.
The code below runs perfectly. But when the entire procedure runs where the xml response is returned I get the error.
DECLARE
v_result XMLType;
v_xml XMLType;
v_request_id varchar2(100);
v_start varchar2(10);
v_end number(10);
p_namespace varchar2(2000):='xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mercury.com/ppm/dm/1.0"';
BEGIN
v_xml := XMLType('<?xml version=''1.0'' encoding=''UTF-8''?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header /><soapenv:Body><service:createRequestResponse xmlns="http://mercury.com/ppm/dm/1.0" xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><service:return xmlns:service="http://mercury.com/ppm/dm/service/1.0" xmlns:common="http://mercury.com/ppm/common/1.0" xmlns="http://mercury.com/ppm/dm/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<addedBy>srvnewscale</addedBy>
<creationDate>2010-10-22T10:33:44Z</creationDate>
<description>testing1</description>
<name>20013876</name>
<displayURL>http://itg.abc.com:19001/itg/web/knta/crt/RequestDetail.jsp?REQUEST_ID=12345678</displayURL>
<identifier><id>20013876</id>
<serverURL>http://itg.abc.com:19001/itg/ppmservices/DemandService</serverURL>
</identifier><status>Enter - Amend Service Offering</status>
</service:return>
</service:createRequestResponse>
</soapenv:Body></soapenv:Envelope>');
v_result := xmltype.extract(v_xml,'/soapenv:Envelope/soapenv:Body/service:createRequestResponse/service:return/name', p_namespace);
insert into result2 values(v_result);
if (v_result is NULL)
then
dbms_output.put_line('no result');
end if;
end;
Regards
Edited by: 804401 on Oct 24, 2010 9:21 PM -
I am trying to register the xml schema and getting error
SQL> BEGIN
2 DBMS_XMLSCHEMA.registerSchema(
3 SCHEMAURL => 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd',
4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998.dtd'),
5 CSID => nls_charset_id('AL32UTF8'));
6 END;
7 /
BEGIN
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00247: invalid Document Type Declaration (DTD)
Error at line 45
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
the xml i am trying to register is
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
<metadata>
<idinfo>
<citation>
<citeinfo>
<origin>MRF</origin>
<pubdate>20040512</pubdate>
<pubtime>09000000</pubtime>
<title>BAS_EASEMENT</title>
etc.
Pls help me in registering the xml schema.I am registering fgdc-std-001-1998-sect01.xsd, but it is
giving error about citeinfo element.XSD is
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" blockDefault="#all">
<xsd:element name="idinfo" type="idinfoType"/>
<xsd:complexType name="idinfoType">
<xsd:sequence>
<xsd:element ref="citation"/>
<xsd:element ref="descript"/>
<xsd:element ref="timeperd"/>
<xsd:element ref="status"/>
<xsd:element ref="spdom"/>
<xsd:element ref="keywords"/>
<xsd:element ref="accconst"/>
<xsd:element ref="useconst"/>
<xsd:element ref="ptcontac" minOccurs="0"/>
<xsd:element ref="browse" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="datacred" minOccurs="0"/>
<xsd:element ref="secinfo" minOccurs="0"/>
<xsd:element ref="native" minOccurs="0"/>
<xsd:element ref="crossref" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="citation" type="citationType"/>
<xsd:complexType name="citationType">
<xsd:sequence>
<xsd:element ref="citeinfo"/>
</xsd:sequence>
</xsd:complexType>
SQL> BEGIN
2 DBMS_XMLSCHEMA.registerSchema(
3 SCHEMAURL => 'fgdc-std-001-1998-sect01.xsd',
4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998-sect01.xsd'),
5 LOCAL => TRUE,
6 GENTYPES => TRUE,
7 genbean => FALSE,
8 GENTABLES => FALSE,
9 force => False,
10 CSID => nls_charset_id('UTF8'));
11 END;
12 /
BEGIN
ERROR at line 1:
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00021: undefined element "citeinfo"
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
ORA-06512: at line 2
I am unable to understand xsd, is there any manual to understand
xsd or some literature.I need to create new xsd as per requirements
also.But Pl could you help me right now with registering current xsd. -
Hi Gurus,
I am dier need of one of the xml issue which I am facing right now.
I am reading one of the xml file which is like this
<?xml version="1.0" encoding="UTF-8" ?>
- <GEBIZ_ORDER xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <HEADER>
<MINISTRY_CODE>RPO</MINISTRY_CODE>
<DEPARTMENT_CODE>000</DEPARTMENT_CODE>
<ORDER_CODE>RPO000EPO11000953</ORDER_CODE>
<EXTERNAL_SYSTEM_CODE>E</EXTERNAL_SYSTEM_CODE>
<AMENDMENT_NUMBER>0</AMENDMENT_NUMBER>
<VARIATION_NUMBER>0</VARIATION_NUMBER>
<DESCRIPTION>Purchase Order for Air tickets for SOT to Korea (from 17th - 26th Sep 2011) off PC(RPO000ECN11000100)for SAS</DESCRIPTION>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<PAYMENT_TERMS xsi:nil="true" />
<BILL_TO>One-Stop Centre, 9 Woodlands Avenue 9, S(738964)</BILL_TO>
<JUSTIFICATION>Please refer to attached approval email.</JUSTIFICATION>
<CREATE_TIMESTAMP>2011-07-08T16:57:39</CREATE_TIMESTAMP>
<TERMINATE_REASON xsi:nil="true" />
<TERMINATE_TIMESTAMP xsi:nil="true" />
<ORDER_TYPE>1</ORDER_TYPE>
- <FINANCIAL_SYSTEM>
<SUB_BUSINESS_UNIT>RPS01</SUB_BUSINESS_UNIT>
</FINANCIAL_SYSTEM>
- <SUPPLIER>
<CODE>200003048E</CODE>
<NAME>Safe2Travel Pte Ltd</NAME>
<GST_NUMBER>20-0003048-E</GST_NUMBER>
<CONTACT_NAME>ONG PEI LENG</CONTACT_NAME>
<CONTACT_PHONE>68233103</CONTACT_PHONE>
<CONTACT_EMAIL>[email protected]</CONTACT_EMAIL>
<CONTACT_FAX>68221636</CONTACT_FAX>
- <SITES>
- <SITE>
<ID>1</ID>
<NAME>ravel Pte Ltd</NAME>
<PHONE>68233013</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>68221636</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>10 Eunos Road 8</ADDRESS_LINE1>
<ADDRESS_LINE2>#08-03 (North Lobby)</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Post Centre</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>408600</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
- <SITE>
<ID>2</ID>
<NAME>ravel Pte Ltd</NAME>
<PHONE>62208866</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>62265578</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>3 Lim Teck Kim Road</ADDRESS_LINE1>
<ADDRESS_LINE2>#02-02</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Technologies Building</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>088934</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
- <SITE>
<ID>3</ID>
<NAME>Safe2Travel Pte Ltd</NAME>
<PHONE>62208866</PHONE>
<PHONE_EXTENSION xsi:nil="true" />
<FAX>62265578</FAX>
<EMAIL>[email protected]</EMAIL>
<ADDRESS_LINE1>3 Lim Teck Kim Road</ADDRESS_LINE1>
<ADDRESS_LINE2>#02-02</ADDRESS_LINE2>
<ADDRESS_LINE3>Singapore Technologies Building</ADDRESS_LINE3>
<COUNTRY_CODE>SG</COUNTRY_CODE>
<PROVINCE xsi:nil="true" />
<STATE xsi:nil="true" />
<CITY xsi:nil="true" />
<AREA_CODE xsi:nil="true" />
<ZIP>088934</ZIP>
<REGION_CODE xsi:nil="true" />
</SITE>
</SITES>
</SUPPLIER>
- <USER>
<CODE>JOYCE SOON</CODE>
<NAME>JOYCE SOON</NAME>
<ORGANISATION_NAME>Republic Polytechnic</ORGANISATION_NAME>
</USER>
- <FUND_COMMIT_AMOUNT>
<CURRENCY_CODE>SGD</CURRENCY_CODE>
<CURRENCY_RATE>1</CURRENCY_RATE>
<CURRENCY_RATE_DATE>1900-01-01T00:00:00</CURRENCY_RATE_DATE>
<CURRENCY_RATE_TYPE>BOOK</CURRENCY_RATE_TYPE>
<CURRENCY_AMOUNT>21551.4</CURRENCY_AMOUNT>
</FUND_COMMIT_AMOUNT>
- <PERIOD_CONTRACT>
<CODE>RPO000ECN11000100</CODE>
<AGENCY_CODE>RPO000</AGENCY_CODE>
<ADMIN_FEE_SGD_AMOUNT>0</ADMIN_FEE_SGD_AMOUNT>
</PERIOD_CONTRACT>
- <BUYER>
<ORGANISATION_CODE>1</ORGANISATION_CODE>
<ORGANISATION_NAME>Republic Polytechnic</ORGANISATION_NAME>
<NAME>Sally Ang</NAME>
<PHONE>31001711</PHONE>
<FAX>64151310</FAX>
<EMAIL>[email protected]</EMAIL>
</BUYER>
<APPROVING_OFFICERS />
</HEADER>
- <ITEMS>
- <ITEM>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<DESCRIPTION>Return Air Ticket including Airport Taxes and Fuel Surcharges (2 staff and 24 students)</DESCRIPTION>
<UNIT_OF_MEASURE>PAX</UNIT_OF_MEASURE>
<QUANTITY>26</QUANTITY>
<LINE_TYPE>SERVICES</LINE_TYPE>
<UNIT_PRICE>828.9</UNIT_PRICE>
<PRICE_UNIT>1</PRICE_UNIT>
<TOTAL_AMOUNT>21551.4</TOTAL_AMOUNT>
<MATERIAL_MASTER_CODE xsi:nil="true" />
<MATERIAL_GROUP_CODE xsi:nil="true" />
<PLANT_CODE xsi:nil="true" />
<ITEM_CATEGORY_CODE xsi:nil="true" />
<ADMIN_FEE_SGD_AMOUNT>0</ADMIN_FEE_SGD_AMOUNT>
<INSTRUCTION_TO_SUPPLIER>Purchase of goods/services is subject to the Terms & Conditions found in www.rp.sg/purchase and/or in the ITQ/ITT Specifications. Please liaise with the Contact Person for delivery details. Invoice MUST be addressed to the Contact Person. PO number MUST be included in the Description field under e-Invoice Details section at Vendor@Gov.</INSTRUCTION_TO_SUPPLIER>
<PERIOD_CONTRACT_LINE_NUMBER>1</PERIOD_CONTRACT_LINE_NUMBER>
<GOODS_INSPECT_FLAG>N</GOODS_INSPECT_FLAG>
- <PURCHASE_REQUEST>
<CODE>RPO000EPR11000465</CODE>
<LINE_NUMBER>1</LINE_NUMBER>
</PURCHASE_REQUEST>
- <PART_NUMBER_INFORMATION>
<NATO_STOCK_NUMBER xsi:nil="true" />
<MANUFACTURER_PART_NUMBER xsi:nil="true" />
<PART_NUMBER xsi:nil="true" />
<CAGE_CODE xsi:nil="true" />
<CAGE_NAME xsi:nil="true" />
<ITEM_CONDITION xsi:nil="true" />
<MINIMUM_SHELF_LIFE xsi:nil="true" />
<SHELF_LIFE_REMAINING xsi:nil="true" />
<CERTIFICATE_OF_CONFORMANCE xsi:nil="true" />
<EXPORT_LICENSE xsi:nil="true" />
</PART_NUMBER_INFORMATION>
- <LOCATIONS>
- <LOCATION>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<QUANTITY>26</QUANTITY>
<DELIVERY_DESTINATION>Republic Polytechnic, One-Stop Centre, 9 Woodlands Avenue 9, S(738964)</DELIVERY_DESTINATION>
<DELIVERY_DATE>2011-07-11T00:00:00</DELIVERY_DATE>
<DELIVERY_TERMS>LOC</DELIVERY_TERMS>
<PORT_OF_ORIGIN>-</PORT_OF_ORIGIN>
- <RECIPIENT>
<CODE>OSC</CODE>
<NAME>One Stop Centre</NAME>
<PHONE>65103000</PHONE>
<EMAIL>[email protected]</EMAIL>
</RECIPIENT>
- <DISTRIBUTIONS>
- <DISTRIBUTION>
<LINE_NUMBER>1</LINE_NUMBER>
<STATUS>NEW</STATUS>
<STATUS_DATE>2011-07-08T16:57:39</STATUS_DATE>
<QUANTITY>26</QUANTITY>
<CHART_OF_ACCOUNT>1/G01/3SAS/020/220908/0000/0000/0000</CHART_OF_ACCOUNT>
<PROJECT_DISTRIBUTION xsi:nil="true" />
</DISTRIBUTION>
</DISTRIBUTIONS>
</LOCATION>
</LOCATIONS>
</ITEM>
</ITEMS>
</GEBIZ_ORDER>I was able to read this kind of file structure but due to some constraints now they added supplier sites and increment that one which will be like variable kind of thing now.
And below mentioned is the script which I am using right now for reading that xml file
PROCEDURE XGBZPROD.XGBZ_PUR_ORD_XMLTAG_PROC(P_XML_FILE IN VARCHAR2, P_FOLDER_NAME IN VARCHAR2)
IS
lv_supp_file XMLTYPE;
lv_hdr_error VARCHAR2(240);
lv_line_error VARCHAR2(240);
lv_line_loc_err VARCHAR2(240);
lv_dist_err VARCHAR2(240);
l_file_name VARCHAR2(300);
l_folder_name VARCHAR2(300);
lv_sysdate DATE := sysdate;
BEGIN
l_file_name := p_xml_file;
l_folder_name := p_folder_name;
-- this clause to check whether is xml file or NODATA FILE.
IF upper(substr(l_file_name,instr(l_file_name,'.',1)+1,3)) ='XML' THEN
lv_supp_file := xmltype( bfilename('XMLDIR',P_XML_FILE), nls_charset_id('AL32UTF8'));
dbms_output.put_line('P_XML_FILE '||P_XML_FILE);
-- Initially insert data into 11g table
-- This is to read xml datafile
INSERT INTO XGBZ_PO_XML_DETAILS
(ministry_code ,
department_code ,
order_code ,
external_system_code ,
amendment_number ,
variation_number ,
description ,
status ,
status_date ,
payment_terms ,
bill_to ,
justification ,
create_timestamp ,
terminate_reason ,
terminate_timestamp ,
order_type ,
sub_business_unit ,
cost_center_group ,
buyer_code ,
financial_system_order_code ,
user_nric ,
supplier_code ,
supplier_name ,
gst_number ,
contact_name ,
contact_phone ,
contact_email ,
contact_fax ,
supp_site_id ,
supp_site_name ,
supp_site_phone ,
supp_sit_phone_ext ,
supp_site_fax ,
supp_site_email ,
supp_site_add_line1 ,
supp_site_add_line2 ,
supp_site_add_line3 ,
supp_site_country_code ,
supp_site_province ,
supp_site_state ,
supp_site_city ,
supp_site_area_code ,
supp_site_zip ,
supp_site_region_code ,
user_code ,
user_name ,
user_org_name ,
currency_code ,
currency_rate ,
currency_rate_date ,
currency_rate_type ,
currency_amount ,
tx_field_2 ,
agency_code ,
admin_fee_sgd ,
buyer_orgn_code ,
buyer_orgn_name ,
buyer_name ,
buyer_phone ,
buyer_fax ,
buyer_email ,
ao_code ,
ao_name ,
line_no ,
line_status ,
line_status_date ,
line_description ,
unit_of_measure ,
line_qty ,
line_type ,
unit_price ,
line_total_amount ,
material_master_code ,
material_group_code ,
item_category_code ,
line_admin_fee_sgd_amt ,
instruction_supplier ,
period_contract_line_no ,
goods_inspect_flag ,
pr_code ,
pr_line_number ,
nato_stock_number ,
manufacturer_part_no ,
part_number ,
cage_code ,
cage_name ,
item_condition ,
minimum_shelf_life ,
shelf_life_remaining ,
cert_of_conformance ,
export_license ,
line_location_no ,
line_loc_status ,
line_loc_status_date ,
line_loc_qty ,
delivery_destination ,
delivery_date ,
delivery_terms ,
port_of_origin ,
recipient_code ,
recipient_name ,
recipient_phone ,
recipient_email ,
dist_line_no ,
dist_line_status ,
dist_line_status_date ,
dist_line_qty ,
chart_of_account ,
project_distribution
SELECT --Header Data
ministry_code ,
department_code ,
order_code ,
external_system_code ,
amendment_number ,
variation_number ,
description ,
status ,
status_date ,
payment_terms ,
bill_to ,
justification ,
create_timestamp ,
terminate_reason ,
terminate_timestamp ,
order_type ,
sub_business_unit ,
cost_center_group ,
buyer_code ,
financial_system_order_code ,
user_nric ,
supplier_code ,
supplier_name ,
gst_number ,
contact_name ,
contact_phone ,
contact_email ,
contact_fax ,
supp_site_id ,
supp_site_name ,
supp_site_phone ,
supp_sit_phone_ext ,
supp_site_fax ,
supp_site_email ,
supp_site_add_line1 ,
supp_site_add_line2 ,
supp_site_add_line3 ,
supp_site_country_code ,
supp_site_province ,
supp_site_state ,
supp_site_city ,
supp_site_area_code ,
supp_site_zip ,
supp_site_region_code ,
user_code ,
user_name ,
user_org_name ,
currency_code ,
currency_rate ,
currency_rate_date ,
currency_rate_type ,
currency_amount ,
tx_field_2 ,
agency_code ,
admin_fee_sgd ,
buyer_orgn_code ,
buyer_orgn_name ,
buyer_name ,
buyer_phone ,
buyer_fax ,
buyer_email ,
ao_code ,
ao_name ,
line_no ,
line_status ,
line_status_date ,
line_description ,
unit_of_measure ,
line_qty ,
line_type ,
unit_price ,
line_total_amount ,
material_master_code ,
material_group_code ,
item_category_code ,
line_admin_fee_sgd_amt ,
instruction_supplier ,
period_contract_line_no ,
goods_inspect_flag ,
pr_code ,
pr_line_number ,
nato_stock_number ,
manufacturer_part_no ,
part_number ,
cage_code ,
cage_name ,
item_condition ,
minimum_shelf_life ,
shelf_life_remaining ,
cert_of_conformance ,
export_license ,
line_location_no ,
line_loc_status ,
line_loc_status_date ,
line_loc_qty ,
delivery_destination ,
delivery_date ,
delivery_terms ,
port_of_origin ,
recipient_code ,
recipient_name ,
recipient_phone ,
recipient_email ,
dist_line_no ,
dist_line_status ,
dist_line_status_date ,
dist_line_qty ,
chart_of_account ,
project_distribution
FROM XMLTable('/GEBIZ_ORDER'
passing lv_supp_file
columns
ministry_code VARCHAR2(3) path 'HEADER/MINISTRY_CODE',
department_code VARCHAR2(3) path 'HEADER/DEPARTMENT_CODE',
order_code VARCHAR2(17 ) path 'HEADER/ORDER_CODE',
external_system_code VARCHAR2(1) path 'HEADER/EXTERNAL_SYSTEM_CODE',
amendment_number VARCHAR2(5) path 'HEADER/AMENDMENT_NUMBER' ,
variation_number VARCHAR2(5) path 'HEADER/VARIATION_NUMBER',
description VARCHAR2(500) path 'HEADER/DESCRIPTION',
status VARCHAR2(500) path 'HEADER/STATUS',
status_date VARCHAR2(24) path 'HEADER/STATUS_DATE',
payment_terms VARCHAR2(400) path 'HEADER/PAYMENT_TERMS',
bill_to VARCHAR2(200) path 'HEADER/BILL_TO',
justification VARCHAR2(400) path 'HEADER/JUSTIFICATION',
create_timestamp VARCHAR2(24) path 'HEADER/CREATE_TIMESTAMP',
terminate_reason VARCHAR2(400) path 'HEADER/TERMINATE_REASON',
terminate_timestamp VARCHAR2(24) path 'HEADER/TERMINATE_TIMESTAMP',
order_type VARCHAR2(2 ) path 'HEADER/ORDER_TYPE',
sub_business_unit VARCHAR2(5 ) path 'HEADER/FINANCIAL_SYSTEM/SUB_BUSINESS_UNIT',
cost_center_group VARCHAR2(20 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/COST_CENTER_GROUP',
buyer_code VARCHAR2(30 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/BUYER_CODE',
financial_system_order_code VARCHAR2(20 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/FINANCIAL_SYSTEM_ORDER_CODE',
user_nric VARCHAR2(9 ) path 'HEADER/FINANCIAL_SYSTEM/NFS/USER_NRIC',
supplier_code VARCHAR2(10) path 'HEADER/SUPPLIER/CODE',
supplier_name VARCHAR2(140) path 'HEADER/SUPPLIER/NAME' ,
gst_number VARCHAR2(30 ) path 'HEADER/SUPPLIER/GST_NUMBER',
contact_name VARCHAR2(140 ) path 'HEADER/SUPPLIER/CONTACT_NAME',
contact_phone VARCHAR2(23 ) path 'HEADER/SUPPLIER/CONTACT_PHONE',
contact_email VARCHAR2(100) path 'HEADER/SUPPLIER/CONTACT_EMAIL',
contact_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/CONTACT_FAX',
supp_site_id NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',
user_code VARCHAR2(16 ) path 'HEADER/USER/CODE',
user_name VARCHAR2(25 ) path 'HEADER/USER/NAME',
user_org_name VARCHAR2(95 ) path 'HEADER/USER/ORGANISATION_NAME',
currency_code VARCHAR2(3 ) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_CODE',
currency_rate NUMBER path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE',
currency_rate_date VARCHAR2(24) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE_DATE',
currency_rate_type VARCHAR2(5 ) path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_RATE_TYPE',
currency_amount NUMBER path 'HEADER/FUND_COMMIT_AMOUNT/CURRENCY_AMOUNT',
tx_field_2 VARCHAR2(17 ) path 'HEADER/PERIOD_CONTRACT/CODE',
agency_code VARCHAR2(6 ) path 'HEADER/PERIOD_CONTRACT/AGENCY_CODE',
admin_fee_sgd NUMBER path 'HEADER/PERIOD_CONTRACT/ADMIN_FEE_SGD_AMOUNT' ,
buyer_orgn_code VARCHAR2(5 ) path 'HEADER/BUYER/ORGANISATION_CODE',
buyer_orgn_name VARCHAR2(95 ) path 'HEADER/BUYER/ORGANISATION_NAME',
buyer_name VARCHAR2(80 ) path 'HEADER/BUYER/NAME',
buyer_phone VARCHAR2(23 ) path 'HEADER/BUYER/PHONE',
buyer_fax VARCHAR2(23 ) path 'HEADER/BUYER/FAX',
buyer_email VARCHAR2(100 ) path 'HEADER/BUYER/EMAIL',
ao_code VARCHAR2(16 ) path 'HEADER/APPROVING_OFFICERS/APPROVING_OFFICER/CODE',
ao_name VARCHAR2(40 ) path 'HEADER/APPROVING_OFFICERS/APPROVING_OFFICER/NAME',
items XMLTYPE path 'ITEMS'
) x1,
XMLTABLE('/ITEMS/ITEM'
passing x1.items
columns
line_no VARCHAR2(5) path 'LINE_NUMBER',
line_status VARCHAR2(15) path 'STATUS',
line_status_date VARCHAR2(24) path 'STATUS_DATE',
line_description VARCHAR2(500) path 'DESCRIPTION',
unit_of_measure VARCHAR2(3) path 'UNIT_OF_MEASURE',
line_qty NUMBER path 'QUANTITY',
line_type VARCHAR2(20) path 'LINE_TYPE',
unit_price NUMBER path 'UNIT_PRICE',
line_total_amount NUMBER path 'TOTAL_AMOUNT',
material_master_code VARCHAR2(20) path 'MATERIAL_MASTER_CODE',
material_group_code VARCHAR2(10) path 'MATERIAL_GROUP_CODE',
item_category_code VARCHAR2(18) path 'ITEM_CATEGORY_CODE',
line_admin_fee_sgd_amt NUMBER path 'ADMIN_FEE_SGD_AMOUNT',
instruction_supplier VARCHAR2(400) path 'INSTRUCTION_TO_SUPPLIER',
period_contract_line_no NUMBER path 'PERIOD_CONTRACT_LINE_NUMBER',
goods_inspect_flag VARCHAR2(1) path 'GOODS_INSPECT_FLAG',
pr_code VARCHAR2(17) path 'PURCHASE_REQUEST/CODE',
pr_line_number VARCHAR2(5) path 'PURCHASE_REQUEST/LINE_NUMBER',
nato_stock_number VARCHAR2(14) path 'PART_NUMBER_INFORMATION/NATO_STOCK_NUMBER',
manufacturer_part_no VARCHAR2(32) path 'PART_NUMBER_INFORMATION/MANUFACTURE_PART_NUMBER',
part_number VARCHAR2(200) path 'PART_NUMBER_INFORMATION/PART_NUMBER',
cage_code VARCHAR2(10) path 'PART_NUMBER_INFORMATION/CAGE_CODE',
cage_name VARCHAR2(140) path 'PART_NUMBER_INFORMATION/CAGE_NAME',
item_condition VARCHAR2(1) path 'PART_NUMBER_INFORMATION/ITEM_CONDITION' ,
minimum_shelf_life NUMBER path 'PART_NUMBER_INFORMATION/MINIMUM_SHELF_LIFE',
shelf_life_remaining VARCHAR2(3) path 'PART_NUMBER_INFORMATION/SHELF_LIFE_REMAINING',
cert_of_conformance VARCHAR2(1000) path 'PART_NUMBER_INFORMATION/CERTIFICATE_OF_CONFORMANCE',
export_license VARCHAR2(3) path 'PART_NUMBER_INFORMATION/EXPORT_LICENSE',
locations XMLTYPE path 'LOCATIONS'
)x2,
XMLTABLE('/LOCATIONS/LOCATION'
passing x2.locations
columns
line_location_no NUMBER path 'LINE_NUMBER',
line_loc_status VARCHAR2(15) path 'STATUS',
line_loc_status_date VARCHAR2(24) path 'STATUS_DATE',
line_loc_qty NUMBER path 'QUANTITY',
delivery_destination VARCHAR2(1000) path 'DELIVERY_DESTINATION',
delivery_date VARCHAR2(24) path 'DELIVERY_DATE',
delivery_terms VARCHAR2(3) path 'DELIVERY_TERMS',
port_of_origin VARCHAR2(150) path 'PORT_OF_ORIGIN',
recipient_code VARCHAR2(16 ) path 'RECIPIENT/CODE',
recipient_name VARCHAR2(40 ) path 'RECIPIENT/NAME',
recipient_phone VARCHAR2(23 ) path 'RECIPIENT/PHONE',
recipient_email VARCHAR2(100 ) path 'RECIPIENT/EMAIL',
distributions XMLTYPE path 'DISTRIBUTIONS'
)x3,
XMLTABLE('/DISTRIBUTIONS/DISTRIBUTION'
passing x3.distributions
columns
dist_line_no NUMBER path 'LINE_NUMBER',
dist_line_status VARCHAR2(15) path 'STATUS',
dist_line_status_date VARCHAR2(24) path 'STATUS_DATE',
dist_line_qty NUMBER path 'QUANTITY',
chart_of_account VARCHAR2(420) path 'CHART_OF_ACCOUNT',
project_distribution VARCHAR2(4000) path 'PROJECT_DISTRIBUTION'
)x4;
end;As there is change in requirement now I need to read the multiple supplier sites at the header level. Current this is my structure please give an idea how to read the mulitple sites as one record, probably i can increase the supplier site columns at table level so as to capture second site level information.
But if in case if i receive that time it should not fail please provide some good solution for this issue.
Thanks in advance for your help.
Regards
NagendraHi odie,
Thanks for your response. But here my supplier site will always be maxiumum 2 times and minimum 1 time. My thinking is to fit this one in the existing code by repeating the supplier site only like this
supp_site_id NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',
supp_site_id2 NUMBER path 'HEADER/SUPPLIER/SITES/SITE/ID',
supp_site_name2 VARCHAR2(140) path 'HEADER/SUPPLIER/SITES/SITE/NAME',
supp_site_phone2 VARCHAR2(23) path 'HEADER/SUPPLIER/SITES/SITE/PHONE',
supp_sit_phone_ext2 VARCHAR2(4 ) path 'HEADER/SUPPLIER/SITES/SITE/PHONE_EXTENSION',
supp_site_fax2 VARCHAR2(23 ) path 'HEADER/SUPPLIER/SITES/SITE/FAX',
supp_site_email2 VARCHAR2(100 ) path 'HEADER/SUPPLIER/SITES/SITE/EMAIL',
supp_site_add_line1_2 VARCHAR2(254 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE1',
supp_site_add_line2_2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE2',
supp_site_add_line3_2 VARCHAR2(35 ) path 'HEADER/SUPPLIER/SITES/SITE/ADDRESS_LINE3',
supp_site_country_code_2 VARCHAR2(2 ) path 'HEADER/SUPPLIER/SITES/SITE/COUNTRY_CODE',
supp_site_province_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/PROVINCE',
supp_site_state_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/STATE',
supp_site_city_2 VARCHAR2(25 ) path 'HEADER/SUPPLIER/SITES/SITE/CITY',
supp_site_area_code_2 VARCHAR2(10 ) path 'HEADER/SUPPLIER/SITES/SITE/AREA_CODE',
supp_site_zip_2 VARCHAR2(20 ) path 'HEADER/SUPPLIER/SITES/SITE/ZIP',
supp_site_region_code_2 VARCHAR2(3 ) path 'HEADER/SUPPLIER/SITES/SITE/REGION_CODE',As this table I am being used in many areas, it will be problem for me if try to go for different levels of tables. Or else can it be possible to read only once
I mean only the first in the xml tags and leave the second xml. As there is not much significant for the second one.
I appreciate your ideas on this, as the structure we are following is to rigid so I don't have much options to explore, please provide me your inputs in this context.
Thanks for your help.
Regards
Nagendra
Edited by: 838961 on Jul 13, 2011 1:43 AM -
I want to start a new iTunes U course for catolog and I don't know what can I do please give me description about this title.
If you haven't already done so then you can contact iTunes support via this page and ask them why the message is appearing (these are user-to-user forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
Maybe you are looking for
-
IPod Touch applications no longer compatible? What is going on?
What happened, all apps used to install into my ipod Touch which I installed on my iPhone 3g. Now slowly, an app at a time is starting to become incompatible and not allowing installation....although it can use the wifi. These are the apps. AirMe Eve
-
My Officejet Pro 8000 wireless printer prints to only 4x5" on 8x11 sheet when printing mult pages
My Officejet Pro 8000 wireless prints to only 4x5 inches on the 8x11 sheet when I try to print multiple pages per sheet from an Adobe file. The print preview shows the paper dimensions to be 8x11, and the four Adobe pages are properly scaled to fill
-
Error while doing the LO extraction
Hi Gurus, I am trying to extract data from the purchasing 2LIS_02_ITM data source through LO extraction. While filling the Setup tables in the R3 sytem I got error with the followng message "Maintain conversion factor for USD / DDK(Currecy type M). P
-
Hi Folks, Is that possible to build a Portlet that shows me only itens of one categorie from just one Folder or Content Area ? I know that there is a Portlet that shows me all itens of one categorie from all my site but I was wondering if I can displ
-
Tracking source system table name for a field in ODS
Hi Guys, I know this is pretty simple for many of you, Being a newbie, pls clarify for me : Consider field1 in ODS1. I want to know the database table which is updating that field. From transfer rules i can see which is the source system filed name b