title: How to do flat array of elements in spyne?
body: <p>How does one write a request handler for Spyne that handles a SOAP request like this:</p>
  
  <pre><code>&lt;getUsers&gt;
    &lt;users&gt;
      &lt;username&gt;foo&lt;/username&gt;
      &lt;username&gt;bar&lt;/username&gt;
      ...
    &lt;/users&gt;
  &lt;/getUsers&gt;
  </code></pre>
  
  <p>I have tried this:</p>
  
  <pre><code>@rpc(Array(Unicode.customize(type_name='username'), min_occurs=1, nillable=False))
  def getUsers(ctx, users):
      stuff
  </code></pre>
  
  <p>But it yields a schema like such:</p>
  
  <pre><code>  &lt;xs:complexType name="getUsers"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="users" type="tns:stringArray"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;xs:complexType name="stringArray"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element maxOccurs="unbounded" minOccurs="0" name="string" nillable="true" type="xs:string"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>How do I change the element name <code>string</code> into <code>username</code>? And preferably also <code>stringArray</code> into something more meaningful? Is my approach completely wrong? </p>