title: Unable to create a SOAP Client object in ZF2
body: <p>I am creating a zend SOAP Client object to call the WSDL functions.</p>
  
  <p>Here is my controller code :</p>
  
  <pre><code>namespace Application\Controller;
  
  use Zend\Mvc\Controller\AbstractActionController;
  
  use Zend\View\Model\ViewModel;
  
  use Zend\Soap\AutoDiscover;
  
  use Zend\Soap\Client;
  
  use Zend\Soap\Server;
  
  use Zend\Soap\Wsdl;
  
  
  class IndexController extends AbstractActionController
  {
      public function indexAction()
      {
  
  
  $client = new Zend\Soap\Client("some.wsdl", array('compression' =&gt; SOAP_COMPRESSION_ACCEPT));
  
          $result = $client-&gt;somefunction();
  
  
          echo $result;
          echo exit;
      }
  </code></pre>
  
  <p>My library files are /vendor/ZF2/library/Zend.</p>
  
  <p>And controller is modules folder.</p>
  
  <p>I have used the Zend\Soap\Client; in controller.</p>
  
  <p>Getting the following error: Fatal error: Class 'Application\Controller\Zend\Soap\Client' not found in .../Controller/IndexController.php on line 25</p>
  
  <p>How to resolve this?</p>
  
  <p>Thanks in advance.</p>