title: CXF wsdl2java - generate list without wrapper (static inner class)
body: <p>I'm trying to make a ws and I have small problem with classes generated by cxf.</p>
  
  <p>Whenever I try to make a list, it is generated as a field of static inner class(wrapper). </p>
  
  <p>for example </p>
  
  <pre><code>&lt;xs:complexType name="customer"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="customerId" type="xs:int"/&gt;
          &lt;xs:element name="orders"&gt;
              &lt;xs:complexType&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="order" type="tns:order" maxOccurs="unbounded"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="order"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="id" type="xs:long" /&gt;
          &lt;xs:element name="name" type="xs:string" /&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>would generate </p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "customer", propOrder = {
  "customerId",
  "orders"
  })
  public class Customer {
  
      protected int customerId;
      @XmlElement(required = true)
      protected Customer.Orders orders;
  ...
      public static class Orders {
  
          @XmlElement(required = true)
          protected List&lt;Order&gt; order;
  ...
  </code></pre>
  
  <p>and what I would like to get is </p>
  
  <pre><code>public class Customer {
  
      protected int customerId;
      protected List&lt;Order&gt; orders;
  ...
  </code></pre>
  
  <p>the xml for this example type should look like:</p>
  
  <pre><code>&lt;customer&gt;
      ...
      &lt;orders&gt;
          &lt;order&gt;
              &lt;id&gt;&lt;/id&gt;
              &lt;name&gt;&lt;/name&gt;
          &lt;/order&gt;
          &lt;order&gt;
              &lt;id&gt;&lt;/id&gt;
              &lt;name&gt;&lt;/name&gt;
          &lt;/order&gt;
          ...
      &lt;/orders&gt;
  &lt;/customer&gt;
  </code></pre>
  
  <p>from what I understand, @XmlRootElement could be used when doing java2wsdl, but is there some way to generate this type of class from wsdl? </p>
  
  <p>Currently calling customer.getOrders().getOrder() would return a list of orders which is a little counterintuitive </p>