title: Soap server not working in Laravel 5.2
body: <p>I'm trying to create a soap server in laravel 5.2. This is my code:<br>
  Content of <code>SoapController.php</code>:</p>
  
  <pre><code>&lt;?php namespace Giant\Http\Controllers;
  
  class SoapController extends Controller {
  
      public function __construct() {
          parent::__construct();
          ini_set('soap.wsdl_cache_enabled', 0);
          ini_set('soap.wsdl_cache_ttl', 0);
          ini_set('default_socket_timeout', 300);
          ini_set('max_execution_time', 0);
      }
  
      public function server() {
          $location = url('server'); // http://payment.dev/server
          $namespace = $location;
          $class = "\\Giant\\Http\\Controllers\\HelloWorld";
  
          $wsdl = new \WSDL\WSDLCreator($class, $location);
          $wsdl-&gt;setNamespace($namespace);
  
          if (isset($_GET['wsdl'])) {
              $wsdl-&gt;renderWSDL();
              exit;
          }
  
          $wsdl-&gt;renderWSDLService();
  
          $wsdlUrl = url('wsdl/server.wsdl');
          $server = new \SoapServer(
              url('server?wsdl'),
              array(
                  'exceptions' =&gt; 1,
                  'trace' =&gt; 1,
              )
          );
  
          $server-&gt;setClass($class);
          $server-&gt;handle();
          exit;
      }
  
      public function client() {
          $wsdl = url('server?wsdl');
          $client = new \SoapClient($wsdl);
  
          try {
              $res = $client-&gt;hello('world');
              dd($res);
          } catch (\Exception $ex) {
              dd($ex);
          }
      }
  }
  
  
  class HelloWorld {
      /**
       * @WebMethod
       * @desc Hello Web-Service
       * @param string $name
       * @return string $helloMessage
       */
      public function hello($name) {
          return "hello {$name}";
      }
  }
  </code></pre>
  
  <p>My wsdl file is: <a href="http://pastebin.com/D4QqQjWB" rel="nofollow">wsdl</a></p>
  
  <p>And my <code>routes</code>:</p>
  
  <pre><code>Route::any('/server', 'SoapController@server');
  Route::any('/client', 'SoapController@client');
  </code></pre>
  
  <p>And the <strong>result</strong> I get:</p>
  
  <pre><code>Internal Server Error
  </code></pre>
  
  <p>:(<br>
  I use <a href="https://github.com/piotrooo/wsdl-creator" rel="nofollow">piotrooo/wsdl-creator</a> to generate wsdl. (There is no problem with that, It is working in laravel 4.2). And I have also tried nusoap and php2wsdl libraries.<br>
  My SoapClient is working well. Because it can get service from other soap servers in other urls, But I think my SoapServer can not work well.<br>
  I even get no errors in error-log file.</p>