Extension mapping unmarshalling of elements in child mapping do not work
------------------------------------------------------------------------

                 Key: JIBX-353
                 URL: http://jira.codehaus.org/browse/JIBX-353
             Project: JiBX
          Issue Type: Bug
          Components: core
    Affects Versions: JiBX 1.2.1
         Environment: weblogic 9.2.0, Java 5
            Reporter: Rajeev J Gandhi
             Fix For: JiBX 1.2.2
         Attachments: RestJAR.zip

Extension mapping unmarshalling of elements in child mapping do not work. eg:

In the example below, the Init element unmarshalling parsing fails for XML:
 "<GameResponse>"+
                        "<Header>"+
                        "<GameDetails ext_game_id=\"123123\" name=\"asd\"/>"+
                        "<Customer cur_code=\"GBP\" session_Id=\"\" 
user_auth=\"asdasd\" user_id=\"adasd\">"+
                        "<Balance amount=\"1000000.00\" type=\"CASH\"/>"+
                        "<Balance amount=\"500.00\" type=\"BONUS\"/>"+
                        "</Customer>"+
                        "<Auth token=\"asdasd\"/>"+
                        "</Header>"+
                        "<Init status=\"success\" />"+
                        "</GameResponse>"

<binding>       
  <include path="baseResponse.xml"/>
   <mapping 
class="com.wagerworks.rgs.app.ns.xt.casino.orbis.message.base.response.BaseResponse"
 abstract="true" ordered="false" flexible="true" value-style="element">
    <structure name="Header" field="header" map-as="header"/>    
  </mapping>
  <mapping name="GameResponse" 
class="com.wagerworks.rgs.app.ns.xt.casino.orbis.message.init.response.InitResponse"
 
extends="com.wagerworks.rgs.app.ns.xt.casino.orbis.message.base.response.BaseResponse"
  >         
    <structure 
map-as="com.wagerworks.rgs.app.ns.xt.casino.orbis.message.base.response.BaseResponse"/>
       
        <structure name="Init" field="init" >
                <value name="status" field="status" style="attribute"/>
        </structure>
  </mapping>       
</binding>

Code attached.

thanks,
rajeev

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to