title: ZendSoapServer looses Error Code when throwing an Exception / SoapFault
body: <p>I have a Zend Backend &amp; a Zend Frontend, both communicating over SOAP. An Exception on the backend, should throw an Exception / SoapFault on the Frontend. This works with the Error-Message, but the Error-Code gets lost somehow. I need the code to be able to show errors in different languages on the frontend. I tried a lot, but couldnt get it to work.</p>
  
  <p><strong>This is the Backend handleSoap function of my SoapController:</strong></p>
  
  <pre><code>private function handleSOAP($class) {
      $options = array('uri' =&gt; 'urn:'.$class.'','location' =&gt; $this-&gt;_WSDL_URI);
      $server = new Zend_Soap_Server(null, $options);
      $server-&gt;setEncoding('ISO-8859-1');
      $server-&gt;setClass($class);
      $server-&gt;registerFaultException('Exception');
      $server-&gt;handle();  
  }
  </code></pre>
  
  <p><strong>On the Frontend the SoapCallerClass:</strong></p>
  
  <pre><code>        public function __construct() {
              $this-&gt;client = new Zend_Soap_Client($this-&gt;_WSDL_URI);
              $this-&gt;client-&gt;setWsdlCache(WSDL_CACHE_NONE);
              $this-&gt;client-&gt;setEncoding('ISO-8859-1');
      }
  
      public function __call($method,$params) {
         try {
           $this-&gt;client-&gt;mySoapFunction();    
         } catch (Exception $e)  {
         throw $e; // No error code inside !
         }
      }
  </code></pre>