title: How to use Nusoap in Laravel 5.1
body: <p>I am new in nusop , I have a code which works good in php simple file ( I mean not in laravel ) , but when I want to use it in laravel ,does not work at all !</p>
  <p>this is my code :</p>
  <pre><code>&lt;?php
  
  require_once &quot;./lib/nusoap.php&quot;;
  //Parameters    
  //
   
  $param  =   array(
                  'user_id'   =&gt;  'MY_USERNAME',
                  'password'  =&gt;  'MY_PASSWORD',
                  'lic_username'  =&gt;  '.......',
                  'lic_password'  =&gt;  '.......',
                  'debug' =&gt;1);
  
  
  //Create    object  that    referer a   web services    
  
  
  $client =   new nusoap_client('https://store.esetme.com/remote/v2/webshop.php?wsdl' ,true);
  
  
  
  //Call  a   function    at  server  and send    parameters  too 
  $response   = $client-&gt;call(&quot;GetLicenseVerification&quot;, $param);
  //Process   result  
  //
  
  
  if  ($client-&gt;fault)    {
                  echo    &quot;FAULT: &lt;p&gt;Code:    (&quot;  .   $client-&gt;faultcode  .   &quot;&lt;/p&gt;&quot;;
                  echo    &quot;String:    &quot;   .   $client-&gt;faultstring;
  }   else    {
                  
                  if  ($response['error'] ==  '') {
                                  //Request   is  Successful
                                  //Handle    Response    Data
                                  echo    $response['licensekey'];
                                  echo    '&lt;br    /&gt;';
                                  echo    $response['username'];
                                  echo    '&lt;br    /&gt;';
                                  echo    $response['password'];
              
                                  echo    '&lt;br    /&gt;';
                                  echo    $response['expiration_date'];
                  }
                  else    {
                                  //An    error   occurred
                                  //Handle    Error
                                  echo    $response['error'];
                  }
                  
                  
  }
  ?&gt;
  </code></pre>
  <blockquote>
  <p>and the output is : test-licensekey test-username test-password
  09/29/2015</p>
  </blockquote>
  <p>But I want to use it in Laravel 5.1  .</p>
  <p>so I created <code>Libraries</code> directory in <code>app</code> Folder , and put <code>nusoap.php</code> there and renamed it to <code>nusoap_client.php</code> and I have put namespace <code>App\Libraries;</code>  in top of it .
  and I use this in my controller , but out put is null !</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  
  use App\Http\Requests;
  use App\Http\Controllers\Controller;
  use App\Libraries\nusoap_client;
  class NusoapController extends Controller
  {
  
      public function getIndex()
      {
              $param  =   array(
                  'user_id'   =&gt;  'MY_USERNAME',
                  'password'  =&gt;  'MY_PASSWORD',
                  'lic_username'  =&gt;  '.......',
                  'lic_password'  =&gt;  '.......',
                  'debug' =&gt;1);
  
  //Create    object  that    referer a   web services
  
  
          $client =   new nusoap_client('https://store.esetme.com/remote/v2/webshop.php?wsdl' ,true);
  
  
  
  //Call  a   function    at  server  and send    parameters  too
          $response   = $client-&gt;call(&quot;GetLicenseVerification&quot;, $param);
  //Process   result
  //
  
  
          if  ($client-&gt;fault)    {
              echo    &quot;FAULT: &lt;p&gt;Code:    (&quot;  .   $client-&gt;faultcode  .   &quot;&lt;/p&gt;&quot;;
              echo    &quot;String:    &quot;   .   $client-&gt;faultstring;
          }   else    {
  
              if  ($response['error'] ==  '') {
                  //Request   is  Successful
                  //Handle    Response    Data
                  echo    $response['licensekey'];
                  echo    '&lt;br    /&gt;';
                  echo    $response['username'];
                  echo    '&lt;br    /&gt;';
                  echo    $response['password'];
  
                  echo    '&lt;br    /&gt;';
                  echo    $response['expiration_date'];
              }
              else    {
                  //An    error   occurred
                  //Handle    Error
                  echo    $response['error'];
              }
  
  
          }
      }
  
  }
  </code></pre>