on 10-05-2007 8:55 AM
Hi all,
I am doing Java Mapping. Ia m getting an error: "xml not well formed" while testing the interface mapping. So can any body help me in this regard?
Regards,
Pavani
Hi
please check whether the occurence for the target side is appropriate.
if you want the target multiple times then put the occurence as 0..unbounded.
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rinku,
My input structure is as follows...
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MTO_JavaMapping01 xmlns:ns0="http://INOAC.com/scenario/JavaMapping01">
<Order>
<Header>
<EmpId/>
<EmpName/>
<EmpLoaction/>
</Header>
<Details>
<EmpTask/>
<EmpEffort/>
</Details>
</Order>
</ns0:MTO_JavaMapping01>
and my output is the same structured one.
Hi
if you want that in the target structure the header and the detail nodes should be multiple times then you have to put the occurence for both as 0..unbounded
an d another in the interface mapping put the occurence for the target message as 0..unbounded
if you still face the probelm please reply me back
Thanks
Rinku
in the test tab of interface mapping, on the target message side, click the "view source" (or something like that) button. You'll be able to see the full output of the java mapping in text mode (no matter whether it's a well formed xml or not). Then you can evaluate whether your mapping is working as you expected.
Regards,
Henrique.
Hi Pavani
please check whether the occurence for the source as well as for the target, whether all the nodes and fields have appropriate occurence.
and if you are able to see the file in the sxmb_moni then copy the payload from the sxmb_moni into your interface mapping . and you will come to know abouth the error.
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavani,
i m not shure, that s the result, what is not well formed, may be the source? Just load the source / target into Internet Explorer, it will validate your msg. If you cant find out, post the source code but only if less than 100 rows
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To check you xml file, use the tool "Altova XMLSpy" it will resolve all your problems.
http://www.redsofts.com/soft/642/39029/XMLSpy_Home_Edition.html
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Have u succeeded in Message mapping ? Give some sample data and test .
Regards.,
V.Rangarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranga Rajan,
I am testing the interface mapping only.
While testing, It will use the java code I have written right?
I am getting "xml not well formed" while testing interface mapping.
By the way, we dont need any message mapping when we go for java mapping right?
Please tell me where the process gone wrong?
Regards,
Pavani
Pavani, it means, that the result of your mapping is not a correct XML document. You have probably some unclosed tag or wrong tag nesting or so.
Find on the web some XML validator and put your result into the test. It'll tell you, wat's wrong.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.