I have :
JAXBElement<ArrayOfLeadRecord> r = l.getLeadRecordList() ;
How can I get the actual ArrayOfLeadRecord
as an object?
It took me so long to unmarshal/convert this JAXBElement
to the actual object I want.
Thanks a lot....
You need to use the getValue()
method.
JAXBElement<ArrayOfLeadRecord> r = l.getLeadRecordList() ;
List<LeadRecordList> leadRecordList = r.getValue().getLeadRecordList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With