I am trying to build a binding file to do the following mapping.
 
Mapping from:
 
<?
<xmlversion="1.0"encoding="UTF-8"?>ODBTIS>    <000002>        
<0000020001>TextID02</0000020001>        <0000030003>TextCode02</0000030003>    
    <0000020002>TextLine1</0000020002>        
<0000020002>TextLine2</0000020002>        <0000020002>TextLine3</0000020002>    
</000001> 
    <000003>        <0000030001>TextID03</0000030001>        
<0000030003>TextCode03</0000030003>        
<0000030002>TextLine1</0000030002>    
    <0000030002>TextLine2</0000030002>        
<0000030002>TextLine3</0000030002>        
<0000030002>TextLine4</0000030002>    </000003></ODBTIS> 
to the following:
 
<?
<xmlversion="1.0"encoding="UTF-8"?>p:myResponseRSxmlns:p="http://www.example.org/schema_1"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.example.org/schema_1
 schema_1.xsd ">    <id>ODBTIS</id>    <myFreeTextInfoList>        
<myFreeTextInfo>            <LineID>TextID01</LineID>           
<EditCode>TextCode01</EditCode>            <myTextLine>                
<Text>TextLine1</Text>                <Text>TextLine2</Text>            
</myTextLine>       </myFreeTextInfo>        <myFreeTextInfo>            
<LineID>TextID02</LineID>            <EditCode>TextCode02</EditCode>            
<myTextLine>                <Text>TextLine1</Text>               
<Text>TextLine2</Text>                <Text>TextLine3</Text>            
</myTextLine>       </myFreeTextInfo>        <myFreeTextInfo>            
<LineID>TextID03</LineID>            <EditCode>TextCode03</EditCode>           
<myTextLine>                <Text>TextLine1</Text>               
<Text>TextLine2</Text>               <Text>TextLine3</Text>               
<Text>TextLine4</Text>            </myTextLine>       </myFreeTextInfo>    
</myFreeTextInfoList> 
</
 
 
I am not able to map multiple fields to the same java class/method/parameter. 
Using abstract, I am not able to get around the multiple records in the Text 
fields. It requires a name for the collection mapping and that seems to be 
causing a problem at mapping time.
 
Any help will be greatly appreciated. If  you have or if you could point me to 
a 
sample mapping file that is doing something similar to this.
 
Thanks,
Mack.
 
 p:myResponseRS>         <000001>        <0000010001>TextID01</0000010001>    
    <0000030003>TextCode01</0000030003>        
<0000010002>TextLine1</0000010002>        <0000010002>TextLine2</0000010002>    
</000001> 

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to