title: SoapServer sends text/html header instead of text/xml
body: <p>My soap server sends Content-Type: text/html in the response header. I need Content-type: text/xml.</p>
  
  <pre><code>public function index()
  {
      $this-&gt;layout = 'soap';
      ini_set("soap.wsdl_cache_enabled", "0");
      $this-&gt;server = new SoapServer('wsdl/tur.wsdl', array(
              'soap_version' =&gt; SOAP_1_2, 
      ));
      $this-&gt;server-&gt;setObject($this);
      $this-&gt;server-&gt;handle();
  }
  </code></pre>
  
  <p>Here is server's response:</p>
  
  <p>HTTP/1.1 200 OK<br>
  Date: Mon, 19 Mar 2012 12:17:10 GMT<br>
  Server: Apache/2.2.20 (Ubuntu)<br>
  X-Powered-By: PHP/5.3.6-13ubuntu3.6<br>
  Set-Cookie: CAKEPHP=msmid2fijgrj1efjs0otl8qfj1; expires=Mon, 19-Mar-2012 16:17:10 GMT; path=/<br>
  P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"<br>
  Vary: Accept-Encoding<br>
  Content-Encoding: gzip<br>
  Content-Length: 877<br>
  Content-Type: <strong>text/html</strong>; charset=UTF-8<br></p>
  
  <p>I've tried to call header() with text/xml conent type<br></p>
  
  <pre><code>public function index()
  {
      $this-&gt;layout = 'soap';
      ini_set("soap.wsdl_cache_enabled", "0");
  
      header("Content-Type: text/xml");
  
      $this-&gt;server = new SoapServer('wsdl/tur.wsdl', array(
          'soap_version' =&gt; SOAP_1_2, 
      ));
      $this-&gt;server-&gt;setObject($this);
      $this-&gt;server-&gt;handle();
  }
  </code></pre>
  
  <p>before and after constructing SoapServer, but no result.</p>