on 06-30-2006 9:38 AM
Hi All,
I hav a scenarion where a third party system receives the XML from XI. the output of the xml from XI looks as follows:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Messages xmllns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
- <ns1:WMSItalyItemReplication xmlns:ns1="http://cpe.com/cpe_ftp_wms/ItemReplication">
- <item_dl dt_tm_created="2006-06-29 09:02:23">
- <item action="" owner_id="CIB" itm_num="3143832ZZ99">
<itm_desc>Ageflex ACM50 Test</itm_desc>
<unt_dol_val>1</unt_dol_val>
<lic_ctrl_flg>Y</lic_ctrl_flg>
<lot_ctrl_flg>Y</lot_ctrl_flg>
<shelf_life>999</shelf_life>
<product_life>999</product_life>
<incubate_prd>0</incubate_prd>
<hold_ord_flg>N</hold_ord_flg>
<kit_type>N</kit_type>
<prelabel_flg>N</prelabel_flg>
<rcv_only_flg>N</rcv_only_flg>
<convey_flg>N</convey_flg>
<front_flip_flg>N</front_flip_flg>
<pick_shp_bp>N</pick_shp_bp>
<side_flip_flg>N</side_flip_flg>
<rotate_flg>N</rotate_flg>
<itm_udef_a />
<itm_udef_b />
<itm_udef_c>Constant1</itm_udef_c>
<itm_udef_d />
<multi_conf_flg>N</multi_conf_flg>
</item>
</item_dl>
</ns1:WMSItalyItemReplication>
</ns0:Message1>
</ns0:Messages>
And the output that the third party expects is as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE item_dl SYSTEM "http://localhost/dtd/item_dl.dtd">
<item_dl><item><itm_desc>Ageflex ACM50 Test</itm_desc>
<unt_dol_val>1</unt_dol_val>
<lic_ctrl_flg>Y</lic_ctrl_flg>
<lot_ctrl_flg>Y</lot_ctrl_flg>
<shelf_life>999</shelf_life>
<product_life>999</product_life>
<incubate_prd>0</incubate_prd>
<hold_ord_flg>N</hold_ord_flg>
<kit_type>N</kit_type>
<prelabel_flg>N</prelabel_flg>
<rcv_only_flg>N</rcv_only_flg>
<convey_flg>N</convey_flg>
<front_flip_flg>N</front_flip_flg>
<pick_shp_bp>N</pick_shp_bp>
<side_flip_flg>N</side_flip_flg>
<rotate_flg>N</rotate_flg>
<itm_udef_a></itm_udef_a>
<itm_udef_b></itm_udef_b>
<itm_udef_c>Constant1</itm_udef_c>
<itm_udef_d></itm_udef_d>
<multi_conf_flg>N</multi_conf_flg>
</item>
</item_dl>
Observe the first two lines of the second output.
I tried to generate the second xml using a java mapping. and it is working fine when i test it in the Interface mapping's test tab. but it is not working when i test the scenario end to end. It is giving some runtime error.
is it possible to change the namespace, etc in the output of the XML coming out of XI? if v change those namespace stuff, does XI recongnise the message and send it to the appropriate reciever?
Please suggest me any solution.
any help wud b greatly appreciated.
Hi,
Could you tell us in more detail what the runtime error was? Looking into the trace will give you more information about the error.
Regards,
Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The first XML is a Split msg XML..Where there are multiple messages within a single XML document..Thats why u have a <ns0:Messages xmllns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Tags..
Recheck what ur target system needs are & change ur mapping in XI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.