Class 'SoapClient' not found
23,991
Solution 1
enable your soap extension in php. open php.ini find the line have "php_soap" and uncomment this line, restart web server, problem solved.
Solution 2
You shouldn't have to modify php.ini to enable soap on modern distributions. If it's not enabled, the package probably isn't installed. Once you install the correct package, your distro should enable the correct php.ini settings for you.
On Ubuntu:
sudo apt-get install php-soap
will install and enable the soap extensions for you.
Author by
mayank
Updated on May 01, 2020Comments
-
mayank about 4 years
I am integrating a payment gateway using SOAP. When i am calling service function using Wamp its working well. But on my live server it is giving folloing error- Class 'SoapClient' not found
the code i am using is
<?php try { $soap_client=new SoapClient("WebServiceLink/service.asmx?WSDL"); $quote=$soap_client->PGI_TRANS("PassedParameter"); echo $quote->PGI_TRANSResult; } catch(SoapFault $exception) { echo $exception->getmessage(); } ?>