Read a xml to table
Hi
Someone may indicate a book or tutorial on xml oracle
I have an xml file and I import to a table, but do not even know how to begin
Using 9.2.02 version
Tia
Edited by: muttleychess on Aug 22, 2012 9:00 AM
If you look in the FAQ for this forum {thread:id=410714}, you will notice that the min supported DB version for any sort of XML related functionality is 9.2.0.3. So ... until you upgrade you will have to treat the data as a CLOB/string.
Or DOMDocument as this thread references {thread:id=2430192}. In other words, act like you are on 8i for dealing with XML.
Edited by: A_Non on Aug 22, 2012 10:16 AM
Added DOMDocument reference. Not sure how I forgot that.
Similar Messages
-
Reading the xml file in customized table.
Hi Experts ,
I have a requirement to read the xml file in one "z" table . Can anyone let me know the exact steps .
Thank you
AshutoshHi Ashutosh,
1. First read the file in BINARY MODE into an XSTRING.
2. Then use the method create_istream_xstring to create the input stream
3. Then you need to create the document tree and the parser
4. Once your Document tree and your parser are created now can use the document tree to access individual elements.
Some Class interfaces that maybe helpful to you are as follows: if_ixml_node, if_ixml_node_iterator, if_ixml_element....etc
DATA:o_ixml TYPE REF TO if_ixml,
o_streamfactory TYPE REF TO if_ixml_stream_factory,
o_istream TYPE REF TO if_ixml_istream.
o_parser TYPE REF TO if_ixml_parser
o_document TYPE REF TO if_ixml_document
o_ixml = cl_ixml=>create( ).
o_istream = o_streamfactory->create_istream_xstring( string = <give the xstring name here>).
o_document = o_ixml->create_document( ).
o_parser = o_ixml->create_parser( stream_factory = o_streamfactory
istream = o_istream
document = o_document ).
You can make the final code as dynamic as possible to read into an internal table.
Regards
-Joe -
How could we read the XML data from a table using BODS.
Hi Guys,
My requirement is , As the OLTP system consists of a table called person which consists of a column demographics. so how could i read this XML data which is in one column of an SQL table called persons. As this XML data will populate the remaining fields in my target using BODS.
Regards,
Amjad.Hi Amjad,
I am afraid there ain't any direct method to extract XML field from a data base.
Indirect way could be converting the whole table (instead of one field) into XML format and then extract one field from it!!
Regards,
Mubashir Hussain -
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 -
SAP J2EE Engine JTA Transaction Xml for table TABLE could not be ana
I'm having a weird case. I created 3 entity bean. In my R/3 will call this JCO.Function to do the insert to database. But out of 3 entity bean, only 1 entity bean got error where it unable to insert to database and have this error in the log.
The case is quite weird where i created the same entity but only 1 entity is not working as expected. Wondering what cause this problem.
Thanks.
org.xml.sax.SAXException: Fatal Error: URI=:main: Line=1: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected: 0x20(:main:, row:1, col:218)#
at com.sap.dictionary.database.dbs.XmlExtractor$XMLErrorHandler.fatalError(XmlExtractor.java:279)#
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144)#
at com.sap.dictionary.database.dbs.XmlExtractor.map(XmlExtractor.java:130)#
at com.sap.dictionary.database.catalog.DbGeneralStructure.<init>(DbGeneralStructure.java:86)#
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:90)#
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)#
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)#
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)#
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)#
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)#
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)#
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)#
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)#
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)#
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)#
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)#
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)#
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)#
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)#
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)#
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)#
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)#
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)#
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)#
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)#
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)#
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)#
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)#
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)#
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)#
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)#
at java.lang.reflect.Method.invoke(Method.java:324)#
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)#
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)#
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)#
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
at java.security.AccessController.doPrivileged(Native Method)#
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)#
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)#
##0#0#Error##Java###{0}.commit(), Cannot commit due to unexpected exception in beforeCompletion():
[EXCEPTION]
{1}#2#SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b]#java.lang.IllegalStateException: Xml for table <TABLE> could not be analysed
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:100)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
#1.5 #001A6467CDF400590000004E000018D8000459BB785F496C#1224561620123#com.sap.engine.services.ts#sap.com/ESolutionsEGatewayEAR#com.sap.engine.services.ts#J2EE_GUEST#0####95b74d409f2411dd86c4001a6467cdf4#SAPEngine_Application_Thread[impl:3]_20##0#0#Error#1#/System/Server#Java#ts_0004##Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b] ).#1#SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b]#
#1.5 #001A6467CDF400590000004F000018D8000459BB785F4BC5#1224561620123#com.sap.engine.services.ts#sap.com/ESolutionsEGatewayEAR#com.sap.engine.services.ts#J2EE_GUEST#0####95b74d409f2411dd86c4001a6467cdf4#SAPEngine_Application_Thread[impl:3]_20##0#0#Error#1#/System/Audit#Java###Exception {0}#1#com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b] ).
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:236)
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.IllegalStateException: Xml for table ZREASON_CODE could not be analysed
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:100)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)
... 16 more
#1.5 #001A6467CDF4005900000050000018D8000459BB785F4E8F#1224561620123#com.sap.engine.services.ejb.entity.Container#sap.com/ESolutionsEGatewayEAR#com.sap.engine.services.ejb.entity.Container#J2EE_GUEST#0####95b74d409f2411dd86c4001a6467cdf4#SAPEngine_Application_Thread[impl:3]_20##0#0#Error##Java###null
[EXCEPTION]
{0}#1#com.sap.engine.services.ejb.exceptions.BaseRemoteException: Transaction system failure in method net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(net.tnb.model.ReasonCodeBean).
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:573)
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b] ).
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:236)
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)
... 15 more
Caused by: java.lang.IllegalStateException: Xml for table ZREASON_CODE could not be analysed
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:100)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)
... 16 more
#1.5 #001A6467CDF4005900000051000018D8000459BB785F5FA9#1224561620123#System.err#sap.com/ESolutionsEGatewayEAR#System.err#J2EE_GUEST#0####95b74d409f2411dd86c4001a6467cdf4#SAPEngine_Application_Thread[impl:3]_20##0#0#Error##Plain###RemoteException insertOk=false#
#1.5 #001A6467CDF4005900000052000018D8000459BB785F6094#1224561620123#System.err#sap.com/ESolutionsEGatewayEAR#System.err#J2EE_GUEST#0####95b74d409f2411dd86c4001a6467cdf4#SAPEngine_Application_Thread[impl:3]_20##0#0#Error##Plain###Tue Oct 21 12:00:20 SGT 2008 java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: Transaction system failure in method net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(net.tnb.model.ReasonCodeBean).
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:573)
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b] ).
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:236)
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)
... 15 more
Caused by: java.lang.IllegalStateException: Xml for table <TABLE> could not be analysed
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:100)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)
... 16 more
; nested exception is:
javax.transaction.RollbackException: com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [031fffffff3ffffffb2005b] ).
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:236)
at net.tnb.model.ReasonCodeEntityHomeImpl3_0.create(ReasonCodeEntityHomeImpl3_0.java:546)
at net.tnb.model.ReasonCodeEntityHome_Stub.create(ReasonCodeEntityHome_Stub.java:57)
at net.tnb.model.EToGatewayBean.insertIntoTable(EToGatewayBean.java:223)
at net.tnb.model.EToGatewayBean.processFunction(EToGatewayBean.java:166)
at net.tnb.model.EToGatewayLocalLocalObjectImpl3_0.processFunction(EToGatewayLocalLocalObjectImpl3_0.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277)
at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219)
at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.IllegalStateException: Xml for table ZREASON_CODE could not be analysed
at com.sap.dictionary.database.catalog.XmlCatalogReader.getTable(XmlCatalogReader.java:100)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:124)
at com.sap.sql.catalog.impl.BufferedCatalogReader.getTable(BufferedCatalogReader.java:87)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.checkTables(CheckColAndTabVisitor.java:299)
at com.sap.sql.sqlparser.CheckColAndTabVisitor.performCatalogChecks(CheckColAndTabVisitor.java:176)
at com.sap.sql.sqlparser.CommonSQLStatement.checkSemantics(CommonSQLStatement.java:169)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.check(StatementAnalyzerImpl.java:35)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:101)
at com.sap.sql.jdbc.common.StatementAnalyzerImpl.preprepareStatement(StatementAnalyzerImpl.java:87)
at com.sap.sql.jdbc.common.AbstractCommonStatement.parseStatement(AbstractCommonStatement.java:472)
at com.sap.sql.jdbc.common.CommonConnectionImpl.prepareStatement(CommonConnectionImpl.java:375)
at com.sap.engine.services.dbpool.cci.ConnectionHandle.prepareStatement(ConnectionHandle.java:81)
at net.tnb.model.ReasonCodeEntityBean3_0Persistent.ejb_iInsert(ReasonCodeEntityBean3_0Persistent.java:306)
at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:92)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:226)
... 16 moreHi Stefan and Everyone,
I have solved my problem. Just want to let everyone know if u have to install the SP's for WEB AS 6.30/6.40.
You start from the installation from CD 6.30/6.40. Everything will be working at this point. You can login to Visual Admin, Config tool and SDM.
Before you apply any SP's, do the following:
a) Create an emergency user with the Administrator rights: Ref OSS Note:669848
Try to follow this route for SP's:
From CD 6.30/6.40 -> SP04 -> SP07
Apply SP04 first before applying SP07 (Recommended Approach).
Refer the installation guide: SAP Web AS Support Package Guide 630SP2 to 640SP4.
Use JDK1.4.2_05 to install SP04. You must reference the following OSS Notes and apply to your system accordingly, this is the key to an error free installation:
a) OSS Note: 697535
b) OSS Note: 709140
c) OSS Note: 716604
d) OSS Note: 706378
You have to be really careful with SP04 installation, because it changes the version from 6.30 -> 6.40.
Once you are able to install SP04 without any problems, you can directly apply SP07 or the highest 6.40 SP.
Kind Regards,
Buddha. -
S.O.S. - I have a problem reading an XML to save it in a database
I have a problem reading an XML I trying to save the data in a database. In a log cuardo the message as text and is correct, but I do not type in the database
Glassfish give me this error in the log:
HTTPBC-E01052: The value set on the org.glassfish.openesb.address.url normalized message property is invalid. This property is expected to be of String type only.
Accepted the message in DBBC Binding. 99574032187979-45019-134439471876390116
Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
Pattern for exchange Id 99574032187979-45019-134439471876390116 is http://www.w3.org/2004/08/wsdl/in-out.
Gettin bean for {http://j2ee.netbeans.org/wsdl/bd}serviceport
Adding reply listener for messsage exchange:99574032187979-45019-134439471876390116
Received in-out message 99574032187979-45019-134439471876390116.
Using Jndi Name:: jdbc/logger
Executing SQL....insert into dbo.appender (timestamp,mensaje) values (?,?)
BPCOR-6151:The process instance has been terminated because a fault was not handled; Fault Name is {http://docs.oasis-open.org/wsbpel/2.0/process/executable}selectionFailure; Fault Data is null
com.sun.jbi.engine.bpel.core.bpel.exception.StandardException: BPCOR-6174:Selection Failure occurred in BPEL({http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE}MapeoPE) at line 39
BPCOR-6129:Line Number is 37
BPCOR-6130:Activity Name is Assign1
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.createVirtualFaultUnit(BPELInterpreter.java:234)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:202)
at com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:98)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:1046)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:278)
at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:1293)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.processStatus(BPELSEInOutThread.java:590)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:292)
at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:193)
normalized message
Finished processing outbound messages.
Accepted the message in DBBC Binding. 99574032187979-45019-134439471876390116
Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
Accepted message with exchange ID 99574032187979-45019-134439471876390116 in DBBC outbound message processor.
Pattern for exchange Id 99574032187979-45019-134439471876390116 is http://www.w3.org/2004/08/wsdl/in-out.
Gettin bean for {http://j2ee.netbeans.org/wsdl/bd}serviceport
Adding reply listener for messsage exchange:99574032187979-45019-134439471876390116
Received in-out message 99574032187979-45019-134439471876390116.
Finished processing outbound messages.
I take data from a XML and I put in two tables in a database. I do not understand what it is the problem.
The main BPEL is this:
<?xml version="1.0" encoding="UTF-8"?>
<process
name="MapeoPE"
targetNamespace="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
xmlns:tns="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns0="http://j2ee.netbeans.org/xsd/tableSchema" xmlns:ns1="http://java.sun.com/xml/ns/jaxb" xmlns:ns2="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab">
<import namespace="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" location="PollInPE.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" location="recumat_htor2-siglo_ped_ext_cab.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" location="recumat_htor2-siglo_ped_ext_lin.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" location="localhost_9080/bitacoraService/bitacoraPort.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<partnerLinks>
<partnerLink name="siglo_ped_ext_cab" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
<partnerLink name="siglo_ped_ext_lin" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
<partnerLink name="log" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" partnerLinkType="tns:bitacora" partnerRole="bitacoraPortTypeRole"/>
<partnerLink name="Entrada" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" partnerLinkType="tns:PollInPE" myRole="FileInboundPortTypeRole"/>
</partnerLinks>
<variables>
<variable name="BitacoraOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" messageType="tns:bitacoraOperationRequest"/>
<variable name="InsertOutSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:insertRetMsg"/>
<variable name="InsertInSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:inputMsg"/>
<variable name="InsertOutSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:insertRetMsg"/>
<variable name="InsertInSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:inputMsg"/>
<variable name="PollIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" messageType="tns:PollInputMessage"/>
</variables>
<sequence>
<receive name="Receive1" createInstance="yes" partnerLink="Entrada" operation="poll" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" portType="tns:FileInboundPortType" variable="PollIn"/>
<assign name="Assign2log">
<copy>
<from>string($PollIn.part1)</from>
<to variable="BitacoraOperationIn" part="part1"/>
</copy>
</assign>
<invoke name="log" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
<assign name="Assign1">
<copy>
<from>$PollIn.part1/ns1:ORDERS/@numero</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_numero_pedido</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@FechaPedido</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_pedido</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@FechaEntrega</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@Observaciones</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_observaciones</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@ejercicio</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ejercicio</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/@Funcion)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_funcion</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@tipoPedido</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_tipo_pedido</to>
</copy>
<copy>
<from>string($PollIn.part1/ns1:ORDERS/@condFacturar)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_condfacturar</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_usuario_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@tipo</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_tipo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@valor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_valor</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@codigo)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ped_ext_cab_pk</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contrato_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@Expediente</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_expedte</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@CCA</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_cca</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_empresa_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@CIF</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cif</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreComercial</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_comerc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANDestino</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_dest</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreFiscal</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_fiscal</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANvendedor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_vend</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANEmisor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanemis</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANQpide</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanqpide</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANAqsf</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanaqsf</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroSerie)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_serie</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLinea</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_numero_linea</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLote)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_lote</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroAlbaran)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_albaran</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@fechaAlbaran</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_albaran</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@valorarAlbaranes)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_valorar_albar</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@CantidadCompra</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_compra</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@Observaciones</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_observaciones</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadPendiente</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_pendiente</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadAnulada</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_anulada</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@precio</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_precio</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@CIP</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_cip</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@marca</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:spl_produ_marca</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@refFabricante</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_refabric</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@modelo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_modelo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_producto_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoLocal</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_loc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoSAS</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_sas</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadMedida</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_medida</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_contra</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_artgenerico_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_presentac_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@codigoEAN</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pre_cod_ean</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@refDistribuidor</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ref_distribuid</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_oferta_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@factorContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_factor_contrat</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadEnUnidades</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_en_unds</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_contrata</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_linprogent_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@cantidad</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@fecha</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entrega_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@EANReceptor</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ean_receptor</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entre_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_origen_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_lin_solic_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ped_ext_lin_pk</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pec_ped_ext_cab_pk</to>
</copy>
</assign>
<invoke name="Invoke_SIGLO_PED_EXT_CAB" partnerLink="siglo_ped_ext_cab" operation="insert" portType="ns2:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_CAB" outputVariable="InsertOutSIGLO_PED_EXT_CAB"/>
<invoke name="Invoke_SIGLO_PED_EXT_LIN" partnerLink="siglo_ped_ext_lin" operation="insert" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" portType="tns:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_LIN" outputVariable="InsertOutSIGLO_PED_EXT_LIN"/>
</sequence>
</process> Thanks in advance!!!
&nI change the bpel to this:
<?xml version="1.0" encoding="UTF-8"?>
<process
name="MapeoPE"
targetNamespace="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
xmlns:tns="http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:ns0="http://j2ee.netbeans.org/xsd/tableSchema" xmlns:ns1="http://java.sun.com/xml/ns/jaxb" xmlns:ns2="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab">
<import namespace="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" location="PollInPE.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" location="recumat_htor2-siglo_ped_ext_cab.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" location="recumat_htor2-siglo_ped_ext_lin.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" location="localhost_9080/bitacoraService/bitacoraPort.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<partnerLinks>
<partnerLink name="siglo_ped_ext_cab" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
<partnerLink name="siglo_ped_ext_lin" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" partnerLinkType="tns:jdbcpartner" partnerRole="jdbcPortTypeRole"/>
<partnerLink name="log" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" partnerLinkType="tns:bitacora" partnerRole="bitacoraPortTypeRole"/>
<partnerLink name="Entrada" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" partnerLinkType="tns:PollInPE" myRole="FileInboundPortTypeRole"/>
</partnerLinks>
<variables>
<variable name="BitacoraOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" messageType="tns:bitacoraOperationRequest"/>
<variable name="InsertOutSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:insertRetMsg"/>
<variable name="InsertInSIGLO_PED_EXT_LIN" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" messageType="tns:inputMsg"/>
<variable name="InsertOutSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:insertRetMsg"/>
<variable name="InsertInSIGLO_PED_EXT_CAB" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_cab" messageType="tns:inputMsg"/>
<variable name="PollIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" messageType="tns:PollInputMessage"/>
</variables>
<faultHandlers>
<catchAll>
<sequence name="Sequence1" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
<assign name="Assign2log">
<copy>
<from>string($PollIn.part1)</from>
<to variable="BitacoraOperationIn" part="part1"/>
</copy>
</assign>
<invoke name="log" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
</sequence>
</catchAll>
</faultHandlers>
<sequence>
<receive name="Receive1" createInstance="yes" partnerLink="Entrada" operation="poll" xmlns:tns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" portType="tns:FileInboundPortType" variable="PollIn"/>
<sequence name="Sequence1bis" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
<assign name="bisAssign2log">
<copy>
<from>string($PollIn.part1)</from>
<to variable="BitacoraOperationIn" part="part1"/>
</copy>
</assign>
<invoke name="bislog" partnerLink="log" operation="bitacoraOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" portType="tns:bitacoraPortType" inputVariable="BitacoraOperationIn"/>
</sequence>
<empty name="HastaAquiVa"/>
<assign name="Assign1">
<copy>
<from>$PollIn.part1/ns1:ORDERS/@numero</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_numero_pedido</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@FechaPedido</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_pedido</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@FechaEntrega</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_fecha_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@Observaciones</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_observaciones</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@ejercicio</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ejercicio</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/@Funcion)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_funcion</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@tipoPedido</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_tipo_pedido</to>
</copy>
<copy>
<from>string($PollIn.part1/ns1:ORDERS/@condFacturar)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_condfacturar</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_usuario_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@tipo</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_tipo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Usuario/ns1:Contacto/@valor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contacto_valor</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@codigo)</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_ped_ext_cab_pk</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Procedimiento/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_proced_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contrato_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@Expediente</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_expedte</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Contrato/@CCA</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_contr_cca</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_empresa_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@CIF</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_cif</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreComercial</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_comerc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANDestino</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_dest</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@nombreFiscal</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_nom_fiscal</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Empresa/@EANvendedor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_emp_ean_vend</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@id</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orgestor_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANEmisor</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanemis</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANQpide</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanqpide</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:OrganoGestor/@EANAqsf</from>
<to>$InsertInSIGLO_PED_EXT_CAB.part/ns0:siglo_ped_ext_cab_Record/ns0:pec_orges_eanaqsf</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroSerie)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_serie</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLinea</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_numero_linea</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroLote)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_lote</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@numeroAlbaran)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_num_albaran</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@fechaAlbaran</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_albaran</to>
</copy>
<copy>
<from>number($PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@valorarAlbaranes)</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_valorar_albar</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@CantidadCompra</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_compra</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@Observaciones</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_observaciones</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadPendiente</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_pendiente</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@cantidadAnulada</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_anulada</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@precio</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_precio</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@CIP</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_cip</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@marca</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:spl_produ_marca</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@refFabricante</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_refabric</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@modelo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_produ_modelo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Producto/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_producto_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoLocal</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_loc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@codigoSAS</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_codigo_sas</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadMedida</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_medida</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@unidadContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_art_und_contra</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Articulo/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_artgenerico_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_presentac_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@codigoEAN</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pre_cod_ean</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/@refDistribuidor</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ref_distribuid</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_oferta_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@factorContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_factor_contrat</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadEnUnidades</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_en_unds</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:InfLogistica/ns1:Oferta/@cantidadContratacion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_contrata</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_linprogent_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@cantidad</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_cant_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:ProgramacionEntregas/ns1:Entregar/@fecha</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_fecha_entrega</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entrega_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@EANReceptor</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ean_receptor</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:PuntoEntrega/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_pto_entre_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_origen_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_lin_solic_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@descripcion</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_desc</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:TipoOrigen/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_tp_origen_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_id</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/ns1:Origen/ns1:SolicitudLinea/ns1:Solicitud/@codigo</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_solicitud_cod</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/ns1:Lineas/ns1:PedidoLinea/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pel_ped_ext_lin_pk</to>
</copy>
<copy>
<from>$PollIn.part1/ns1:ORDERS/@id</from>
<to>$InsertInSIGLO_PED_EXT_LIN.part/ns0:siglo_ped_ext_lin_Record/ns0:pec_ped_ext_cab_pk</to>
</copy>
</assign>
<invoke name="Invoke_SIGLO_PED_EXT_CAB" partnerLink="siglo_ped_ext_cab" operation="insert" portType="ns2:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_CAB" outputVariable="InsertOutSIGLO_PED_EXT_CAB"/>
<invoke name="Invoke_SIGLO_PED_EXT_LIN" partnerLink="siglo_ped_ext_lin" operation="insert" xmlns:tns="http://j2ee.netbeans.org/wsdl/recumat_htor2-siglo_ped_ext_lin" portType="tns:jdbcPortType" inputVariable="InsertInSIGLO_PED_EXT_LIN" outputVariable="InsertOutSIGLO_PED_EXT_LIN"/>
</sequence>
</process>
And change the XML input to that:
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<ORDERS id="125" numero="34" FechaPedido="05/10/2006" FechaEntrega="05/11/2006" Observaciones="Pedido en monitorización." ejercicio="2006" Funcion="0" tipoPedido="220" condFacturar="81E">
<Usuario id="45">
<Contacto id="13" tipo="TE" descripcion="Teléfono de Juanjo Carmona" valor="620987845"/>
</Usuario>
<Procedimiento id="1" codigo="0" descripcion="Concurso Público"/>
<Contrato id="1457467" Expediente="07CSU001" CCA="123+WER345"/>
<Empresa id="13" codigo="237619" nombreComercial="nombreComercial1" nombreFiscal="nombreFiscal1" CIF="cif1" EANvendedor="CODIGOEAN111" EANDestino="CODIGOEAN112"/>
<OrganoGestor id="1" descripcion="Hospital Virgen de Tal" EANQpide="CODIGOEAN113" EANAqsf="CODIGOEAN114" EANEmisor="CODIGOEAN115"/>
<Lineas>
<PedidoLinea id="234" numeroLinea="1" numeroSerie="1" numeroLote="1" numeroAlbaran="1" fechaAlbaran="05/11/2006" valorarAlbaranes="true" CantidadCompra="3" Observaciones="observaciones lÃÂnea1" cantidadPendiente="3" cantidadAnulada="0" precio="11.243">
<Producto id="1228" CIP="" refFabricante="CS-16402" modelo="modelo1" marca="marca1"/>
<Articulo id="89" codigo="001097" codigoSAS="01.02.07.120045" codigoLocal="014554" unidadContratacion="CMK" unidadMedida="CMK"/>
<InfLogistica id="45" codigoEAN="codigoEAN1" refDistribuidor="refDistribuidor1">
<Oferta id="67" factorContratacion="2.5" cantidadContratacion="7.5" cantidadEnUnidades="7"/>
</InfLogistica>
<ProgramacionEntregas>
<Entregar id="61" cantidad="3" fecha="05/11/2006"/>
</ProgramacionEntregas>
<PuntoEntrega id="546" EANReceptor="CODIGOEAN120" descripcion="Almacen principal"/>
<Origen id="464">
<TipoOrigen id="1" descripcion="tipo1"/>
<SolicitudLinea id = "453">
<Solicitud id="67" codigo="3456"/>
</SolicitudLinea>
</Origen>
</PedidoLinea>
</Lineas>
</ORDERS>
</root>
An the result is:
I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750656880061 is http://www.w3.org/2004/08/wsdl/in-only
I18N: BPJBI-3004: Received in-only message for M Ex 123033969803782-31456-134439750656880061 content is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:msgns="http://j2ee.netbeans.org/wsdl/MapeoPedidosEntrada/PollInPE" type="msgns:PollInputMessage" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part><root>
<ORDERS FechaEntrega="05/11/2006" FechaPedido="05/10/2006" Funcion="0" Observaciones="Pedido en monitorizaci�³n." condFacturar="81E" ejercicio="2006" id="125" numero="34" tipoPedido="220">
<Usuario id="45">
<Contacto descripcion="Tel�©fono de Juanjo Carmona" id="13" tipo="TE" valor="620987845"/>
</Usuario>
<Procedimiento codigo="0" descripcion="Concurso P�ºblico" id="1"/>
<Contrato CCA="123+WER345" Expediente="07CSU001" id="1457467"/>
<Empresa CIF="cif1" EANDestino="CODIGOEAN112" EANvendedor="CODIGOEAN111" codigo="237619" id="13" nombreComercial="nombreComercial1" nombreFiscal="nombreFiscal1"/>
<OrganoGestor EANAqsf="CODIGOEAN114" EANEmisor="CODIGOEAN115" EANQpide="CODIGOEAN113" descripcion="Hospital Virgen de Tal" id="1"/>
<Lineas>
<PedidoLinea CantidadCompra="3" Observaciones="observaciones lÃ?Ânea1" cantidadAnulada="0" cantidadPendiente="3" fechaAlbaran="05/11/2006" id="234" numeroAlbaran="1" numeroLinea="1" numeroLote="1" numeroSerie="1" precio="11.243" valorarAlbaranes="true">
<Producto CIP="" id="1228" marca="marca1" modelo="modelo1" refFabricante="CS-16402"/>
<Articulo codigo="001097" codigoLocal="014554" codigoSAS="01.02.07.120045" id="89" unidadContratacion="CMK" unidadMedida="CMK"/>
<InfLogistica codigoEAN="codigoEAN1" id="45" refDistribuidor="refDistribuidor1">
<Oferta cantidadContratacion="7.5" cantidadEnUnidades="7" factorContratacion="2.5" id="67"/>
</InfLogistica>
<ProgramacionEntregas>
<Entregar cantidad="3" fecha="05/11/2006" id="61"/>
</ProgramacionEntregas>
<PuntoEntrega EANReceptor="CODIGOEAN120" descripcion="Almacen principal" id="546"/>
<Origen id="464">
<TipoOrigen descripcion="tipo1" id="1"/>
<SolicitudLinea id="453">
<Solicitud codigo="3456" id="67"/>
</SolicitudLinea>
</Origen>
</PedidoLinea>
</Lineas>
</ORDERS>
</root></jbi:part></jbi:message>
I18N: BPJBI-3015: Sending status for 123033969803782-31456-134439750656880061. Status: Done.
I18N: BPJBI-3019: Sending a one way outbound message to the NMR. MessageExchangeId is 123033969803782-31456-134439750657350062, service name is {http://enterprise.netbeans.org/bpel/MapeoPedidosEntrada/MapeoPE}log, endpoint name is bitacoraPortTypeRole_partnerRole.
I18N: BPJBI-3018: The contents of the message are : <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:msgns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" type="msgns:bitacoraOperationRequest" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part>
</jbi:part></jbi:message>
HTTPBC-E01052: The value set on the org.glassfish.openesb.address.url normalized message property is invalid. This property is expected to be of String type only.
I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750657350063 is http://www.w3.org/2004/08/wsdl/in-only
I18N: BPJBI-3004: Received in-only message for M Ex 123033969803782-31456-134439750657350063 content is <?xml version="1.0" encoding="UTF-8"?><jbi:message xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:msgns="http://j2ee.netbeans.org/wsdl/bitacora/bitacora" name="input1" type="msgns:bitacoraOperationRequest" version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"><jbi:part xmlns:m="http://j2ee.netbeans.org/wsdl/bitacora/bitacora">
</jbi:part></jbi:message>
I18N: BPJBI-3015: Sending status for 123033969803782-31456-134439750657350063. Status: Done.
I18N: BPJBI-3002: Pattern for exchange Id 123033969803782-31456-134439750657350062 is http://www.w3.org/2004/08/wsdl/in-only
I18N: BPCOR-3003:
document before transformation:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><jbi:message xm -
I need for a simple example of reading a xml file using jdom
Hello
I have been looking for a simple example that uses Jdom to read am xml file and use the information for anything( ), and I just can't find one.since I'm just beggining to understand how things work, I need a good example.thanks
here is just a simple cod for example:
<xmlMy>
<table>
<item name="first" value="123" createdDate="1/1/90"/>
<item name="second" value="456" createdDate="1/4/96"/>
</table>
<server>
<property name="port" value="12345"/>
<property name="maxClients" value="3"/>
</server>
</xmlMy>DaveHi,
FileInputStream fileInputStream = null;
try {
fileInputStream = new FileInputStream("my_xml_file.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} finally{
if (fileInputStream == null) return;
SAXBuilder saxBuilder = new SAXBuilder();
saxBuilder.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
return new InputSource(new StringReader(""));
Document document = null;
try {
document = saxBuilder.build(fileInputStream);
} catch (JDOMException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (document == null) return;
Element element = document.getRootElement();
System.out.println(element.getName());
System.out.println(element.getChild("table").getName()); -
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed. I've re-used this script on 20+ client installs and it's always worked. The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error. It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING. This seems to imply that I have to hardcode the document in each script that I deploy for a customer. When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
Questions to the group
#1 Am I missing something here?
#2 Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
#3 Cisco didn’t document this in any way that I can find.
#4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ? It would seem this functionality has been killed in UCCX 8
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
(Background)
Create File Document Step
The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
The output of this step is a DOCUMENT to be used in the Create XML Document step
The string FILE_FullPathHolidayFiles references en_us\folderName\documentName.xml
The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
The create XML document input can only be a type DOCUMENT#1 Am I missing something here?
You are mixing two different issues together here.
The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
#2 Do you assume that you'll be able to load a script that
worked fine in UCCX 7 into UCCX 8 and that it should completely
function when you're doing everything according to the step reference
documentation.
Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
#3 Cisco didn’t document this in any way that I can find.
You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
#4 How can you use the Create XML Document step in a fashion that would
let you construct the path of the file and the filename previously in
the script so you could pass it to a subflow ? It would seem this functionality has been killed in UCCX 8
No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example: "DOC[" + myFilePath + "]" -
Read an XML file into an ABAP program and manipulate it.
I would like to know if it is possible to do the following in an ABAP program:
1) Read an XML file into an ABAP internal table
2) Call an XSLT transformation on the source file and store the results in an ABAP table.
Is this possible to do? I have used ABAP XSLT in PI, but never in an ABAP program. I see you can use the CALL TRANSFORMATION command, but I have never used it in an ABAP program.
Kind Regards,
Tony.Check out these blogs.
XML DOM Processing in ABAP part I - Convert an ABAP table into XML file using SAP DOM Approach.
XML DOM Processing in ABAP part II - Convert an XML file into an ABAP table using SAP DOM Approach. -
Read any XML File Elements using SAX Parser in J2se
Hi All
I can able to parsed one structured XML file using SAX
Sample code :
// ===========================================================
// SAX DocumentHandler methods
// ===========================================================
public void startDocument() throws SAXException {
logger.info("Start of document");
public void endDocument() throws SAXException {
logger.info("End of document");
public void startElement(String namespaceURI, String localName, // local
// name
String qualName, // qualified name
Attributes attrs) throws SAXException {
elemName = new String(localName); // element name
if (elemName.equals(""))
elemName = new String(qualName); // namespaceAware = false
tagPosition = TAG_START;
// Set the string for accumulating the text in a tag to empty
elemChars = "";
// If the element name is "row", create a new row instance
// If the element is "indexxid", "ModelPrice", or "ModelSpread",
// the value will be read in the method "characters" and stored.
if (elemName.equals("row")) {
row = new IndexRow();
numRows++;
// logger.info("Number of numRow:"+numRows);
} // end method startElement
public void endElement(String namespaceURI, String simpleName, // simple
// name
String qualName // qualified name
) throws SAXException {
elemName = new String(simpleName);
if (elemName.equals(""))
elemName = new String(qualName); // namespaceAware = false
tagPosition = TAG_END;
String indexId = new String();
Double dblVal = new Double(0);
// If element name is "row", put the current row in the map for row
// instances
if (elemName.equals("row")) {
if (numRows <= 5) { logger.info("Row is: " + row.toString()); }
//ABX
//indexRows.put(row.getIndexxId(), row);
if (family.equals("ABX.HE")){
indexRows.put(row.getIndexREDId(), row);
else {
//CDX ITRXX
indexRows.put(row.getIndexxId(), row);
} else if (elemName.equals("IndexID")) {
row.setIndexxId(elemChars);
// Leave double value at default of zero if there are no chars
if (elemChars.trim().length() != 0) {
dblVal = new Double(elemChars);
row.setCompositeSpread(dblVal);
indexId = row.getIndexxId();
} else if (elemName.equals("REDCode")) {
row.setRedCode(elemChars);
else if (elemName.equals("Name")) {
row.setRowName(elemChars);
} else if (elemName.equals("Series")) {
row.setSeries(elemChars);
} else if (elemName.equals("Version")) {
row.setVersion(elemChars);
} else if (elemName.equals("Term")) {
row.setTerm(elemChars);
} else if (elemName.equals("Maturity")) {
row.setMaturity(elemChars);
} else if (elemName.equals("OnTheRun")) {
row.setOnTheRun(elemChars);
} else if (elemName.equals("Date")) {
row.setRowDate(elemChars);
} else if (elemName.equals("Depth")) {
row.setDepth(elemChars);
else if (elemName.equals("Heat")) {
// logger.info("Chars for element " + elemName + " are '" +
// elemChars + "'");
// Leave double value at default of zero if there are no chars
if (elemChars.trim().length() != 0) {
dblVal = new Double(elemChars);
row.setHeat(dblVal);
indexId = row.getIndexxId();
// ABX.HE
else if (elemName.equals("IndexREDId")){
row.setIndexREDId(elemChars);
else if (elemName.equals("Coupon")){
row.setCoupon(elemChars);
if (elemName.equals("Ontherun")) {
row.setOnTheRun(elemChars);
} // end method endElement
public void characters(char buf[], int offset, int len) throws SAXException {
// If at end of element, there will be no characters
if (tagPosition == TAG_END) {
return;
// The characteres method may be called more than once
// for an element if the internal buffer fills up.
// Append the characters until the end of the element.
String strVal = new String(buf, offset, len);
elemChars = elemChars + strVal;
} // end method characters
} // end class MarkItIndexLoader
but the problem is i want to read (parse) any XML file means any Elemets would be change any time using SAX .In the above example
else if (elemName.equals("Heat")) {
else if (elemName.equals("IndexREDId")){
} else if (elemName.equals("Maturity")) {
like above I am doing hard code Elements names and reading the values so i don't want hard coding the elements names I want to read any element name and value dynamically.
If i give any one below XML file i want to read the Elements and displaying to console without changing any code i want to read the XML document.
EX:
Student.XML: <root>..</StName>..</StAge>...</root>
Employee.XML: <root>..</EmpName>..</EmpAge>...</root>
CdCatalog.XML: <root>..</Cdtitle>...</CdNumber>...</root>
I need one java program can ready any type of XML file elements and send to the Database table.
Please any one done like this task please suggest some reference links or books or sample snippet which can help me to develop program in my requirement.
Thanks in advance
Regards
satishYou should ask in the Java forum.
Regards
Stefan -
How to read a XML document uploaded via browser in OWA_Content
I've developed a PLSql procedure to upload xml documents (via browser) into owa_content, now i need to read this xml document to use XML packges for insert into a Table if someone have a tip... help me please!
Thanks!If u want to display the name : value then u can do like this
<xsl:eval>this.selectSingleNode("name").nodeName</xsl:eval> : <xsl:value-of select="name" /> -
WebDynpro 4 Java & Persistence options : Any Idea how 2 read an XML?
Hi,
I was wondering if there is an easy way to store modified (or new) values in a WebDynpro application.
e.g. A User adds a new row to an existing Table UI in Web Dynpro application with create button. I want to save this row either in an XML file, in a table connecting to database or in an ABAP table via RFC connection. Which option is a light (on resources?) and easy to implement. I think it's reading and writing to an XML file. What are the other options, if any?
I've been trying to read an xml file (stored under src/mimes/Components/<com.sap.myComp>/test.xml as below:
//controller code
private static final String FILE_NAME = "test.xml";
private static final WDWebResourceType FILE_EXT = WDWebResourceType.XML;
IWDResource resource = WDWebResource.getWebResource(wdComponentAPI.getDeployableObjectPart(), EditView.FILE_EXT, EditView.FILE_NAME);
wdContext.currentContextElement().setFile(resource);
//end controller code
//view Init() code
IWDResource resource = wdContext.currentContextElement().getFile();
File file = new File(resource.getResourceName().toString());
/* I've also tried below
FileInputStream fis = null;
fis = new FileInputStream(file);
url = file.getAbsolutePath();
//url is null when printed?
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(file);
doc.getDocumentElement().normalize();
content = doc.getDocumentElement().getNodeName().toString();
//end view Init() code
When I print the value of content, I get it's initial value which is null. What is wrong?? any ideas?
How to get the correct path to the stored xml and how to display its contents? I've read enough posts on SDN but couldn't get it working.
Appreciate your help.
Regards,
N.hi,
U r retriving the elements by tag name.So it just chks the tag name ie.<book> & gives u array of elements.But u need retrive d attribute of <book> tag itself.
=Solution =====
Add one more statement ----> var[]= doc.getElementsByName("book");
Now u hav book elements as an array & can retrive id in for loop
for(var; var.length;var++)
doc.element[var].id.value -
Interface to get inbond XML into tables
We have Oracle 7.3 and HP-UX. We have a requirement to get XML from client and get the data into our tables.
I think we need to install Oracle XDK and parse the XML and put it in Oracle using JDBC.
I need to know which version of XDK I should install in HP-UX/Oracle 7.3?
Can anyone provide a sample code to insert data from XML to tables?
We have a standard XML with data in tags. No attributes.We have Oracle 7.3 and HP-UX. We have a requirement to get XML from client and get the data into our tables.
I think we need to install Oracle XDK and parse the XML and put it in Oracle using JDBC.
I need to know which version of XDK I should install in HP-UX/Oracle 7.3?
Can anyone provide a sample code to insert data from XML to tables?
We have a standard XML with data in tags. No attributes. -
Recover data in XML audit table
Oracle 11gR1 rhel5 64 bti
Hi all,
I was wondering if anyone knows how we can recover data that is captured in an XML audit table?
thanks.Ok, It looks like I misunderstood the request.
Here is what management would like me to do.
Say there is a table X and we update a row in that table. Now that change (UPDATE) has been captured by an audit table, whose structure looks like the following:
CREATE TABLE FPRCHR.AUDIT_TRAIL
AUDIT_TRAIL_RID NUMBER CONSTRAINT NN_AUDIT_TRAIL_PK NOT NULL,
AUDIT_TIMESTAMP TIMESTAMP(6),
ACTION VARCHAR2(30 BYTE),
TABLE_OWNER VARCHAR2(30 BYTE),
TABLE_NAME VARCHAR2(30 BYTE),
USERNAME VARCHAR2(64 BYTE),
ROW_KEY SYS.XMLTYPE,
OLD_ROW SYS.XMLTYPE,
NEW_ROW SYS.XMLTYPE
TABLESPACE FPRCHRDAT01
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 80K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
XMLTYPE ROW_KEY STORE AS CLOB
( TABLESPACE FPRCHRDAT01
ENABLE STORAGE IN ROW
CHUNK 16384
PCTVERSION 10
NOCACHE
INDEX (
TABLESPACE FPRCHRDAT01
STORAGE (
INITIAL 80K
NEXT 1
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
STORAGE (
INITIAL 80K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOB (SYS_NC00010$) STORE AS
( TABLESPACE FPRCHRDAT01
ENABLE STORAGE IN ROW
CHUNK 16384
PCTVERSION 10
NOCACHE
INDEX (
TABLESPACE FPRCHRDAT01
STORAGE (
INITIAL 80K
NEXT 1
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
STORAGE (
INITIAL 80K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
XMLTYPE OLD_ROW STORE AS CLOB
( TABLESPACE FPRCHRDAT01
ENABLE STORAGE IN ROW
CHUNK 16384
PCTVERSION 10
NOCACHE
INDEX (
TABLESPACE FPRCHRDAT01
STORAGE (
INITIAL 80K
NEXT 1
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
STORAGE (
INITIAL 80K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOCACHE
NOPARALLEL
MONITORING;
However, we realised that the update was incorrect and needs to be undone. So we want to take the change that was captured in the audit trail table (which would be in the old_row column) for table X and insert that back into table X. Keeping in mind that the row is an XML row.
How could I do that?
Thanks. -
Insertion in XML Type table and fetching the data in Pro*C
I have a Pro*C program written which populate one temp table. That temp table is used for writing the records to a flat file and then the table is purged by this program itself. Now my requirement is to write a new procedure in this progarm which simultaneously populate new XML Type table. Also i have to write some other procedures/functions to query the XML type table
in Pro*C. I am new to XML part of database. Could somebody suggest how to go ahead with this problemPlease check the Oracle Database 10g: XML DB Developer's Guild for example.
Maybe you are looking for
-
Hi, I'm getting the following error while trying to configure DAC. MESSAGE:::C:\app\product\11.2.0\dbhome_1\BIN\ocijdbc11.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform EXCEPTION CLASS::: java.lang.UnsatisfiedLinkError java.lang.ClassLoader$
-
Help with my charger "saying its not certified and it wont charge"
But my charger is genuine and my iPhone model is 5 16GB Help me to fix this! Thx att MNT
-
Publish_ipod fails on create_poster_image
I have been running PcP for most of this summer quarter quite successfully. I record lectures that are a bit less than 45 minutes typically and submit for publishing to a group blog for the course. For some reason, one lecture (and only one) consiste
-
Downloading file not the correct contents
Hi, I have a link on another page the take me over to the page that contains the code below: <CFOUTPUT> <CFSET FPATH = #GetDirectoryFromPath(ExpandPath("*.*"))#> <cfdirectory directory="#FPATH#" name="FILES" action="LIST"> <TABLE> <CFLOOP Query="FILE
-
Import of custom class doesn't seem to work...
OK, I have my custom class defined in a file called "rootInstace.as". This is what it contains: package import flash.display.MovieClip; public class CRoot extends MovieClip public static var _root:MovieClip; public function CRoot () _root = this; thi