Error message: ============= [bind] Error: Collection component must specify a test-method to distinguish from next component of compatible type for marshalling; on structure element at (line 57, col 95, in epaycore/web/schemas/jibxAuthUnMarshMapping.xml) [bind]
Part of my binding file: ======================== <structure name="dept-info" > <collection field="itemInfo" factory="first.epayment.core.bean.EPaymentRequest.itemInfoSetFactory" > <structure name="dept-identifier" type="first.epayment.entity.TransactionItemInfo"> <value name="description" field="description" /> <value name="value" field="value" set-method="setPkTrue"/> </structure> <structure name="additional-info" type="first.epayment.entity.TransactionItemInfo"> <value name="description" field="description" /> <value name="value" field="value" set-method="setPkFalse" /> </structure> </collection> </structure> Problem: ======== I have an xml which has one "dept-identifier" and several items for "additional-info" . Both are of the same type TransactionItemInfo. Both have to go into the same List in the object. Now during marshalling Jibx can not figure out automatically which one is dep-identifier and which one is additional-info. How do I instruct jibx so it can handle this? What is the syntax to specify a test-method? (This is what the error message is saying.) Can some one please help me with this. If there is a different way to write the binding so that this issue will not arise then that method is also a good answer for me. Thank you Hara ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users