Author |
Message
|
gaurav.udgir |
Posted: Fri Jun 26, 2009 2:36 am Post subject: Using Mapping Node |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi All,
I using a Mapping Node. I mapped the fields at the top/ parent level to copy all the fields. Now I need to copy one field at different level to the other field. But while doing this it says that:
Multiple mappings for element. And I agree with that error.
My problem is where can I do the chanhges to get just the second mapping and remove the first (Note: I mapped the top level field). Do I need to map each field again by removing the top level mapping.
Please revert if you need any further information.
Regards,
Gaurav |
|
Back to top |
|
 |
vairavan |
Posted: Fri Jun 26, 2009 4:56 am Post subject: |
|
|
Apprentice
Joined: 22 Apr 2008 Posts: 42
|
hi gaurav,
You can achieve this by mapping directly the child elements. You dont need to map the top level field.
One good thing about Mapping node is... we can drill down the child elements and map it to the destination field, The top field automatically gets mapped once you do the child mapping.
Hope this solves your problem. If not, bring up with the message structure and field that you wanna map.
All the best... |
|
Back to top |
|
 |
gaurav.udgir |
Posted: Mon Jun 29, 2009 1:48 am Post subject: Using Mapping Node |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi,
I tried to map the child elements one by one. But I am unable to get the output. The XML output which I am getting is blank.
I have Namespace declaration in the XML message which I am passing. Is it because of this namespace that I am getting a blank output? How to handle namespaces in MApping Node.
Note: When I map at the top level I am gettign the output. Thsi issue I am facing when mapping child nodes one by one.
Thank you.
Regards,
Gaurav |
|
Back to top |
|
 |
vairavan |
Posted: Mon Jun 29, 2009 5:51 am Post subject: |
|
|
Apprentice
Joined: 22 Apr 2008 Posts: 42
|
I think, I got your problem.
Check your destination message set for the domain information. i.e., XMLNSC or XMLNS.
Try doing this for setting the correct parser in Mapping node.
Right click on the mapping node, select 'Set Message Parser' and set the correct parser.
Hope this resolves.
 |
|
Back to top |
|
 |
gaurav.udgir |
Posted: Mon Jun 29, 2009 6:14 am Post subject: |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi Vairavan.
Thank you for the response.
I checked the Message Parser at the Destination and found that its XMLNSC. An the input message is also for XMLNSC. But still I am gettign the problem.
Strange thing is when I map the fields at the highest parent level I am getting output as complete Input XML. But when I map teh fields one by one its not giving any output.
Thank you.
Regards,
Gaurav |
|
Back to top |
|
 |
kimbert |
Posted: Mon Jun 29, 2009 12:19 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Take a user trace. You will probably see a lot of output, because the Mapping node generates a lot of ESQL. But you will get a clue about what's happening to your message.
It is possible that the XML message does not match the message definitions which you used in the Mapping node. You can easily check that by setting Validation to 'Content and Value' in the input node. If you get a validation error, you can fix the problem and then switch off validation again ( although it doesn't cost very much CPU when XMLNSC does it ) |
|
Back to top |
|
 |
|