Hi castor experts, here I have an problem in solving the error,can any one help
me out their to solve
This is xml file (sample)
<main>
<items>
<item>
<item1>1</item1>
<item2>2</item2>
</item>
</items>
<returns>
<item>
<message1>hello</message1>
<message2>hello</message2>
</item>
</returns>
</main>
This is mapping file (sample)
<...>
<class name="main" >
<field name="item" collection="collection" type="itemsJava">
<bind-xml name="item" location="items">
<field name="returns" collection="collection" type="ReturnsJava">
<bind-xml name="item" location="returns ">
</class>
<class type="itemsJava">
<field name="item1"type="string">
</field>
<field name="item2"type="string">
</field>
</class>
<class type="returnsJava">
<field name="message1"type="string">
</field>
<field name="message2"type="string">
</field>
</class>
I have defined one main class which has two collection object items and returns
And I have itemJava and returnJava class to populate the xml datas.
While marshalling/unmarshaling the returnsJava class is not up picked to
populate the data
I am getting the error
(actual scenario error )
unable to find FieldDescriptor for 'message1' in ClassDescriptor of
create-response-item-vO{file: [not available]; line: [not available]; column:
[not available]}
The question is why the castor looks into item-Vo class instead of looking in
return-vo actually message is defined in return? is that item are repeated in
two many complextypes ?
Thanks for those whose resolves my issue.
Thanks & Regards,
Vijayanand M
HP Global Delivery India Center
Digital Park, II Floor, Software Block Dpd42 W-65A
Off: +91-80-26173065
Mobile: 9880061244
Email: [EMAIL PROTECTED]
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------