Skip to content
Advertisement

Laravel 5 add nusoap

I am unable to install nusoap to my existing laravel 5 application. Ive done the following:

Created a new Folder in App/Http/Controllers/ – namend “Soap” – and copied the libary into it.

use

composer dump-autoload

So i am able to use

use nusoap_client;

But i am always getting an error:

Class 'AppHttpControllersnusoap_client' not found

I thought that laravel automatically load all classes from the “app” directory, but how can i use it here?

Tried with:

 $wsdl = "test.xx/_vti_bin/lists.asmx?wsdl";
$client = new nusoap_client($wsdl, true);

Thanks for any help!

Advertisement

Answer

Just add these lines to your controller:

include 'nusoap.php';
use nusoap_client;
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement