Philip, Please see my files below.
xml message: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header> <AuthorizationToken xmlns="http://www.avectra.com/2005/"> <Token>92f12320-2dd1</Token> </AuthorizationToken> </soap:Header> <soap:Body> <GetQueryResponse xmlns="http://www.avectra.com/2005/"> <GetQueryResult> <IndividualObjects recordReturn="1"> <IndividualObject> <ind_cst_key>2b08b5b6-000b6ac24938</ind_cst_key> <ixo_rlt_code>Staff</ixo_rlt_code> <ixo_start_date/> <ixo_end_date/> <org_cst_key>1537d8aef8b-e7aecf2610a8</org_cst_key> <org_name>University Dentistry</org_name> <org_cst_key_ext>1537d8ae-0aecf2610a8</org_cst_key_ext> </IndividualObject> </IndividualObjects> </GetQueryResult> </GetQueryResponse> </soap:Body> </soap:Envelope> Mapping File: <?xml version="1.0"?> <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd"> <mapping> <class name="org.aamc.amspullservice.oxm.castor.GetQueryResponse"> <map-to xml="GetQueryResponse" /> <field name="getQueryResult" type="org.aamc.amspullservice.oxm.castor.GetQueryResult" required="true"> <bind-xml name="GetQueryResult" node="element" /> </field> </class> <class name="org.aamc.amspullservice.oxm.castor.GetQueryResult"> <map-to xml="GetQueryResult" /> <field name="individualObjects" type="org.aamc.amspullservice.oxm.castor.IndividualObjects" required="false"> <bind-xml name="IndividualObjects" node="element" /> </field> </class> <class name="org.aamc.amspullservice.oxm.castor.IndividualObjects"> <map-to xml="IndividualObjects" /> <field name="individualObject" type="org.aamc.amspullservice.oxm.castor.IndividualObject" required="false" collection="arraylist"> <bind-xml name="IndividualObject" node="element" /> </field> </class> <class name="org.aamc.amspullservice.oxm.castor.IndividualObject"> <map-to xml="IndividualObject" /> <field name="v_ind_cst_key" type="java.lang.String"> <bind-xml name="ind_cst_key" node="element" /> </field> <field name="v_ixo_rlt_code" type="java.lang.String"> <bind-xml name="ixo_rlt_code" node="element" /> </field> <field name="v_ixo_start_date" type="java.lang.String"> <bind-xml name="ixo_start_date" node="element" /> </field> <field name="v_ixo_end_date" type="java.lang.String"> <bind-xml name="ixo_end_date" node="element" /> </field> <field name="v_org_cst_key" type="java.lang.String"> <bind-xml name="org_cst_key" node="element" /> </field> <field name="v_org_name" type="java.lang.String"> <bind-xml name="org_name" node="element" /> </field> <field name="v_org_cst_key_ext" type="java.lang.String"> <bind-xml name="org_cst_key_ext" node="element" /> </field> </class> </mapping> Corresponding classes: public class GetQueryResponse { private GetQueryResult getQueryResult; //getters and setter also } public class GetQueryResult { private IndividualObjects individualObjects; } public class IndividualObjects { private List<IndividualObject> individualObject; } public class IndividualObject { private String v_ind_cst_key; private String v_ixo_rlt_code; private String v_ixo_start_date; private String v_ixo_end_date; private String v_org_cst_key; private String v_org_cst_key_ext; private String v_org_name; } All classes have corresponding getters n setters. Exception: unable to find FieldDescriptor for 'ind_cst_key' in ClassDescriptor of IndividualObject; nested exception is org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'ind_cst_key' in ClassDescriptor of IndividualObject It doesn't make sense...i clearly mapped ind_cst_key. Thanks for help! Sri Philipp Erlacher wrote: > > Hi S, > > could you post the part from your mapping file starting at <class > name="com.C1"> to the ending element of <field name="TEST1" > type="string">. > > What names do your getter and setter methods for v_test1 have ? > > Regards, > Philipp > > > -- View this message in context: http://old.nabble.com/castor-mapping-nested-elements-multiple-classes-tp29296978p29349315.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

