title: NuSOAP and response with Array
body: <p>I've NuSOAP web-server:
  ...</p>
  
  <pre><code>    $server-&gt;register('getMembersEvents',       
          array('date' =&gt; 'xsd:string'),                      
          array('Events' =&gt; 'tns:Events'),
          'urn:my',             
          false,                          
          'rpc',                          
          false,                          
          'Description'               
      );
  
      $server-&gt;wsdl-&gt;addComplexType(
          'Events',
          'complexType',
          'array',
          '',
          'SOAP-ENC:Array',
          array('Event' =&gt;array ('name' =&gt; 'Event', 'type' =&gt; 'tns:Event')),
          array(
              'Event' =&gt; array('ref'=&gt;'SOAP-ENC:arrayType','wsdl:arrayType'=&gt;'tns:Event[]')
          ),
          'tns:Event'
      );
  
  $server-&gt;wsdl-&gt;addComplexType(
      'Event',
      'complexType',
      'struct',
      'all',
      '',
      array(
          'field1' =&gt; array('name' =&gt; 'MemberNumber', 'type' =&gt; 'xsd:int'),
                   // ...
          'fieldN' =&gt; array('name' =&gt; 'WebMemberID', 'type' =&gt; 'xsd:int')
      )
  );
  </code></pre>
  
  <p>Everyting works fine, but the response seems like:</p>
  
  <pre><code>&lt;SOAP-ENV:Body&gt;
    &lt;ns1:getMembersEventsResponse xmlns:ns1="urn:eliza"&gt;
           &lt;Events xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:Event[2]"&gt;
              &lt;item xsi:type="tns:Event"&gt;
                 &lt;field1 xsi:type="xsd:int"&gt;123&lt;/field1&gt;
                    ...
                 &lt;fieldN xsi:type="xsd:int"&gt;123&lt;/fieldN&gt;
              &lt;/item&gt;
              &lt;item xsi:type="tns:Event"&gt;
                 &lt;field1 xsi:type="xsd:int"&gt;123&lt;/field1&gt;
                    ...
                 &lt;fieldN xsi:type="xsd:int"&gt;123&lt;/fieldN&gt;
              &lt;/item&gt;
           &lt;/Events&gt;
        &lt;/ns1:getMembersEventsResponse&gt;
     &lt;/SOAP-ENV:Body&gt;
  </code></pre>
  
  <p>How cab I rename "item"? I have to have Events -> Event node structure.</p>