Hi,

Could you post your xml schema for the Customer?

Cheers,
Andrei.

> -----Original Message-----
> From: Jose María Zaragoza [mailto:[email protected]]
> Sent: Freitag, 8. März 2013 17:41
> To: [email protected]
> Subject: wsdl2java and @XmlElementWrapper
> 
> Hello:
> 
> 
> 
> We're creating our JAXB helper classes with wsdl2java All works fine, but *we
> would like that List elements were wrapped by an element.* But wsdl2java
> doesn't do it
> 
> 
> 
> For example:
> 
> @XmlRootElement
> @XmlAccessorType(XmlAccessType.FIELD)
> public class Customer {
> 
> //  ** wsdl2java doesn't create a @XmlElementWrapper **  private
> List<PhoneNumber> phoneNumbers;
> 
> // setters/getters
> }
> 
> @XmlType(name="phone-number")
> public class PhoneNumber {
> 
> 
>     @XmlValue
>     private String number;
> 
> //setters/getters
> 
> }
> 
> We would like a
> 
> <phoneNumbers>
>           <phone-number>55588900</phone-number>
>           <phone-number>5555678</phone-number>
> </phoneNumbers>
> 
> 
> We could modify Customer  class by hand, but we'd like to configure
> wsdl2java to generate automatically these things
> 
> Any ideas ?
> 
> Thanks and regards

Reply via email to