title: How to make NuSOAP works with Symfony 1.4?
body: <p>I'm trying to make my webservice in symfony with NuSOAP. I also made a client for test purpose.
  I managed to make it work in my /web/ directory, but i can't access my symfony methods from there.
  So i created a new module in my frontend app, and i copied the content of my nuSOAP server file into indexSuccess.php.
  When i try to consume it, i get no error but also no results, and what's really strange is $proxy->response returning my homepage.</p>
  
  <p>Here's my indexSuccess.php </p>
  
  <pre><code>require_once ("../lib/soap/nusoap.php");
  
  $server = new soap_server();
  
  $namespace = "Webservices";
  $server-&gt;wsdl = new wsdl();
  $server-&gt;wsdl-&gt;schemaTargetNamespace = $namespace;
  
  $server-&gt;configureWSDL("Webservices", "Webservices");
  
  function getDemandes($partnerCode)
  {       
  
    $demandesArray = array(); 
    $demandeArray[] = array( 'id' =&gt; 5, 'poid_id' =&gt; 25, 'demande_type' =&gt; "Male" );
    $demandeArray[] = array( 'id' =&gt; 8,'poid_id' =&gt; 21, 'demande_type' =&gt; "Female");
  
    return $demandeArray;
  }
  
  $server-&gt;register(
      'getDemandes',
      array('partnerCode' =&gt; 'xsd:string'),
      array('getDemandesResponse'=&gt;'tns:ArrayOfDemandesDatas'),
      $namespace,
      false,
      'rpc',
      'encoded',
      'Return requests'
      );
  $POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
  $server-&gt;service($POST_DATA);
  exit();
  </code></pre>
  
  <p><strong>After further research I get the error <code>Response not of type text/xml: text/html; charset=utf-8</code></strong> whitch is not surprising because i have my default layout in the <code>$request -&gt; response</code>, even if i disable it with $this->layout(false);</p>