title: What is the WSDL declaration for an array of integers?
body: <p>The SOAP specs are confusing, numerous, and available in multiple versions, and my soap library's WSDL generator is buggy. What's the correct WSDL for an array of integers? Could it be:</p>
  
  <pre><code>&lt;element name="ArrayOfIntegers"&gt;
    &lt;complexType base="SOAP-ENC:Array"&gt;
      &lt;element name="integer" type="xsd:integer" maxOccurs="unbounded"/&gt;
    &lt;/complexType&gt;
    &lt;anyAttribute/&gt;
  &lt;/element&gt;
  </code></pre>
  
  <p>or is it (from the wsdl spec):</p>
  
  <pre><code>&lt;complexType name="ArrayOfFloat"&gt;
    &lt;complexContent&gt;
        &lt;restriction base="soapenc:Array"&gt;
            &lt;attribute ref="soapenc:arrayType" 
                       wsdl:arrayType="xsd:integer[]"/&gt;
        &lt;/restriction&gt;
    &lt;/complexContent&gt;
  &lt;/complexType&gt;
  </code></pre>
  
  <p>Or how about:</p>
  
  <pre><code>&lt;element name="ArrayOfIntegers"&gt;
   &lt;complexType&gt;
    &lt;sequence&gt;
     &lt;element maxOccurs="unbounded" name="integer" type="xsd:int"/&gt;
    &lt;/sequence&gt;
   &lt;/complexType&gt;
  &lt;/element&gt;
  </code></pre>
  
  <p>Or something else?</p>