John01 Posted March 10, 2016 Share Posted March 10, 2016 Hi I am getting 'Class 'SoapClient' not found' error on line; $client = new SoapClient("http://mydomain.com/mywebservice.asmx?wsdl"); I have got a php.ini with entries as attached. What more can I check to fix this? Thanks Regards Quote Link to comment Share on other sites More sharing options...
requinix Posted March 11, 2016 Share Posted March 11, 2016 What does phpinfo() say about whether the soap extension is loaded? Quote Link to comment Share on other sites More sharing options...
John01 Posted March 11, 2016 Author Share Posted March 11, 2016 (edited) Hi Below is what I get soap related in phpinfo output. Thanks Regards soapSoap Client => enabledSoap Server => enabledDirective => Local Value => Master Valuesoap.wsdl_cache => 1 => 1soap.wsdl_cache_dir => /tmp => /tmpsoap.wsdl_cache_enabled => 1 => 1soap.wsdl_cache_limit => 5 => 5soap.wsdl_cache_ttl => 86400 => 86400 Edited March 11, 2016 by John01 Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted March 11, 2016 Share Posted March 11, 2016 What's the output of phpinfo() when executed through the webserver? That is, you need to create a script and request the URL with a browser. Are you sure you've reloaded Apache, PHP-FPM etc.? Quote Link to comment Share on other sites More sharing options...
John01 Posted March 11, 2016 Author Share Posted March 11, 2016 (edited) Hi Here is the output. Thanks Regards https://dl.dropboxusercontent.com/u/3486413/PHP%20Version%205.pdf Edited March 11, 2016 by John01 Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted March 11, 2016 Share Posted March 11, 2016 No SOAP in there. Are you sure you've reloaded Apache, PHP-FPM etc.? Quote Link to comment Share on other sites More sharing options...
John01 Posted March 11, 2016 Author Share Posted March 11, 2016 No SOAP in there. Hi Sorry, new to PHP. How can I check? Thanks Regards Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted March 11, 2016 Share Posted March 11, 2016 Restart Apache and then check the script again. You're running PHP as an Apache module, which means changes in the PHP configuration won't take effect until you reload the entire webserver. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.