Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Complex mapping

$
0
0

People,

 

I have a source xml where the structures are independent. The link between them is via the id field. See the example below:

 

<?xml version="1.0" encoding="UTF-8"?>

<ns0:mtOrigem xmlns:ns0="http://poc.wilson.sons:testejoinentreestruturas">

   <header>

      <id>1</id>

   </header>

   <header>

      <id>2</id>

   </header>

   <item>

      <id>2</id>

      <item>2A</item>

      <valor>2000.00</valor>

   </item>

</ns0:mtOrigem>

 

In this example I have two headers (id 1 and 2) and an item on the id 2.

 

The problem is that the target structure is linked (the item is below the header). How to make that link? Notice that, after mapping, the item was below the id 1, when the correct would be below the id 2 :

 

<?xml version="1.0" encoding="UTF-8"?>

<ns0:mtDestino xmlns:ns0="http://poc.wilson.sons:testejoinentreestruturas">

   <header>

      <id>1</id>

      <item>

         <item>2A</item>

         <valor>2000.00</valor>

      </item>

   </header>

   <header>

      <id>2</id>

   </header>

</ns0:mtDestino>

 

Can anyone help me solve this issue? In the attached image is the print of the mapping.

 

 

Thanks,

 

 

 

Oscar Möller


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>