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

Graphical mapping question

$
0
0

Hi gurus,

 

following response message come to me from webservice

 

 

<RESPONSE>

     <HEADER>

         <ITEM_HEADER>

             <ITEM_ID>10001</ITEM_ID>

             <ITEM_CODE>AAA</ITEM_CODE>

         </ITEM_HEADER>

         <ITEM_HEADER>

 

             <ITEM_ID>10002</ITEM_ID>

             <ITEM_CODE>BBB</ITEM_CODE>

         </ITEM_HEADER>

         <ITEM_HEADER>

             <ITEM_ID>10003</ITEM_ID>

             <ITEM_CODE>CCC</ITEM_CODE>

         </ITEM_HEADER>

         <ITEM_HEADER>

             <ITEM_ID>10004</ITEM_ID>

             <ITEM_CODE>DDD</ITEM_CODE>

         </ITEM_HEADER>

     </HEADER>

     <DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>AAA</ITEM_CODE>

             <ITEM_VALUE>A10</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>AAA</ITEM_CODE>

             <ITEM_VALUE>A20</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>AAA</ITEM_CODE>

             <ITEM_VALUE>A30</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>CCC</ITEM_CODE>

             <ITEM_VALUE>C10</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>CCC</ITEM_CODE>

             <ITEM_VALUE>C20</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>DDD</ITEM_CODE>

             <ITEM_VALUE>D10</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>DDD</ITEM_CODE>

             <ITEM_VALUE>D20</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>DDD</ITEM_CODE>

             <ITEM_VALUE>D30</ITEM_VALUE>

         </ITEM_DETAIL>

         <ITEM_DETAIL>

             <ITEM_CODE>DDD</ITEM_CODE>

             <ITEM_VALUE>D40</ITEM_VALUE>

         </ITEM_DETAIL>

     </DETAIL>

</RESPONSE>

 

This should be summarized in a structure below;

 

<RESPONSE>

     <HEADER_DETAIL>

         <GRUOP>

             <ITEM>

                 <ITEM_ID>10001</ITEM_ID>

                 <ITEM_CODE>AAA</ITEM_CODE>

                 <ITEM_VALUE>A10</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10001</ITEM_ID>

                 <ITEM_CODE>AAA</ITEM_CODE>

                 <ITEM_VALUE>A20</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10001</ITEM_ID>

                 <ITEM_CODE>AAA</ITEM_CODE>

                 <ITEM_VALUE>A30</ITEM_VALUE>

             </ITEM>

         </GRUOP>

         <GRUOP>

             <ITEM>

                 <ITEM_ID>10003</ITEM_ID>

                 <ITEM_CODE>CCC</ITEM_CODE>

                 <ITEM_VALUE>C10</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10003</ITEM_ID>

                 <ITEM_CODE>CCC</ITEM_CODE>

                 <ITEM_VALUE>C20</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10003</ITEM_ID>

                 <ITEM_CODE>CCC</ITEM_CODE>

                 <ITEM_VALUE>C30</ITEM_VALUE>

             </ITEM>

         </GRUOP>

         <GRUOP>

             <ITEM>

                 <ITEM_ID>10004</ITEM_ID>

                 <ITEM_CODE>DDD</ITEM_CODE>

                 <ITEM_VALUE>D10</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10004</ITEM_ID>

                 <ITEM_CODE>DDD</ITEM_CODE>

                 <ITEM_VALUE>D20</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10004</ITEM_ID>

                 <ITEM_CODE>DDD</ITEM_CODE>

                 <ITEM_VALUE>D30</ITEM_VALUE>

             </ITEM>

             <ITEM>

                 <ITEM_ID>10004</ITEM_ID>

                 <ITEM_CODE>DDD</ITEM_CODE>

                 <ITEM_VALUE>D40</ITEM_VALUE>

             </ITEM>

         </GRUOP>

     </HEADER_DETAIL>

</RESPONSE>

 

value "10002" has no Item_value, therefore it should be ignored. can anyone assist me? Thank you


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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