Jump to content
John01

Class 'SoapClient' not found

Recommended Posts

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

post-179741-0-22829200-1457653831_thumb.png

Share this post


Link to post
Share on other sites

What does phpinfo() say about whether the soap extension is loaded?

Share this post


Link to post
Share on other sites

Hi

 

Below is what I get soap related in phpinfo output.

 

Thanks

 

Regards

 

 

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

Edited by John01

Share this post


Link to post
Share on other sites

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.?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.