title: Complex type in Zend Soap
body: <p>I'm trying to port an existing web service wrote with NuSOAP to Zend Framework.</p>
  
  <p>I was able to add a complex type to the service, but I cannot retrieve that value in my function. Here's some code to make you understand better.</p>
  
  <p>The controller:</p>
  
  <pre><code>private $_WSDL_URI="http://webservice/?wsdl";
  
  public function indexAction()
  {
      $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
  
      if(isset($_GET['wsdl'])) {
          //return the WSDL
          $this-&gt;hadleWSDL();
      } else {
          //handle SOAP request
          $this-&gt;handleSOAP();
      }
  }
  
  private function hadleWSDL() {
      $autodiscover = new Zend_Soap_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex');
      $autodiscover-&gt;setClass('Webservice');
      $autodiscover-&gt;handle();
  }
  
  private function handleSOAP() {
      $soap = new Zend_Soap_Server($this-&gt;_WSDL_URI);
      $soap-&gt;setClass('Webservice');
      $soap-&gt;handle();
  }
  </code></pre>
  
  <p>The Webservice class:</p>
  
  <pre><code>/**
   * desc
   *
   * @param Type_Authentication
   * @return Array
   */
  public function get_vehicle_type($authentication) {
      var_dump($authentication);
      die();
  
      return array('test', 'tsest');
  }
  </code></pre>
  
  <p>The Type_Authentication class:</p>
  
  <pre><code>/** @var string */
  public $username;
  
  /** @var string */
  public $password;
  </code></pre>
  
  <p>In the code above, $authentication returns </p>
  
  <pre><code>object(stdClass)#25 (0) {
  } 
  </code></pre>
  
  <p>What am I doing wrong?</p>