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....
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();