Hi below is PhoneDirectory.xsd which has request for phonenumbers associated with an userId and response giving corresponding phone numbers.
The unmarshalled class corresponding to the response element (PhoneNumberResponse.java) doesn't contailn any setter method. Instead it has one getPhoneNumber() method which return list of phone numbers.
Hi Aravind. This is the PhoneNumberResponse element
The generated code is:
This is how it works when you have arrays/sequences in the schema. You use getPhoneNumber() to get the list and then use list.add() to add data. For non-sequence items, you should see the regular getters.