public function projetosequipesAction() { $cliente = new SoapClient($this->_WSDL_URI . '/wsdl'); //return new ViewModel(array("dados"=>$cliente->tarefas(1))); $response = $this->getResponse(); $response->getHeaders()->addHeaders(array('Content-type' => 'text/xml')); $xml = $response->setContent($cliente->projetosEquipes(1, true)); return $xml; }