title: Pass array of objects as param to SOAP function and php-wsdl
body: <p>i'm trying to setup a SOAP server with a function that reads an array of objects as parameter. I'm generating WSDL with php-wsdl. Here's my approach:</p>
  
  <pre><code>/**
   * TStanMag
   * 
   *
   * @pw_set nillable=false The next element can't be NULL
   * @pw_element string $kodTowaru Kod towaru
   * @pw_set nillable=false The next element can't be NULL
   * @pw_element float $ilosc Dostępna ilość
   * @pw_complex TStanMag Pozycja stanu magazynowego
   */
  class TStanMag {
      public $kodTowaru;
      public $ilosc;
  };
  </code></pre>
  
  <p>...</p>
  
  <pre><code>/**
   * Aktualizacja stanów magazynowych
   * 
   * @param string $key1 Klucz 1
   * @param string $key2 Klucz 2
   * @param TStanMag[] $stany Tabela stanów magazynowych
   * @param int $store_id
   * @return TResult[] Response
   */
  public function AktualizujStanyMagazynowe($key1, $key2, $stany, $store_id = 0) {
  ...
  }
  </code></pre>
  
  <p>but in WSDL i see this type instead of array of types:</p>
  
  <pre><code>&lt;wsdl:part name="stany" type="tns:TStanMag[]"&gt;
  &lt;s:documentation&gt;Tabela stanów magazynowych&lt;/s:documentation&gt;
  &lt;/wsdl:part&gt;
  </code></pre>
  
  <p>also getting warning in SoapUI</p>
  
  <pre><code>Thu Mar 19 21:04:38 CET 2015:WARN:Failed to find type [{http://localhost/symsync/}TStanMag[]]
  </code></pre>
  
  <p>How can I fix this?</p>