To enable SOAP support, configure PHP with --enable-soap .
qiancy (2013-06-27 14:27:58)
yum install php53-soap
--centos Linux 2.6.18-308.el5
bty-adminf4 at trebly dot net (2011-10-09 18:05:07)
Not a bug, not an enhancement, but incident with a solution which is needed to take care of a parameters coherency problem with wdsl_cache.
This need which could disappear in future (next) version .
If soap is enable (default), in php.ini after the parameter which enables the cache for wdsl :
soap.wsdl_cache_enable=1
if the other parameter
soap.wsdl_cache=
is not explicitly set (>0)
A request :
$mysoap_inst = NEW SoapClient ( https://...../*.wsdl)
will crash because the class SoapClient will not be loaded and initiated.
The following parameters are requested into php.ini :
soap.wsdl_cache
soap.wsdl_cache_dir (not completely checked)
This is because default value are not enabled by a simple
soap.wsdl_cache_enable=1
You can't try to set dynamically the value if they are not defined in php.ini explicitly with the default value.
warren at mojohost dot com (2011-03-03 01:51:35)
You may not need anything extra, just --enable-soap. For some reason reading these notes made me think some other installation was required. You can just recompile with --enable-soap.
For linux try php -i | grep configure and run your new configure with that same list, just append --enable-soap at the end.
Anonymous (2010-11-03 08:03:01)
If you are using 3rd party all-in-one servers on windows (like Uniform Server etc), "php_soap.dll" may not be included in the default distribution. If this is the case, the do phpinfo(); first, check what compiler is used - you need to find out if it's VC6 or VC9, then got to official php download page, get windows binary distribution (.zip archive recommended), and copy php_soap.dll from that archive to your server (on Uniform it's <path>usr\local\php\extensions\ and then restart the apache service. Please note that despite of compiler difference, PHP comes in two flavours - thread safe and non thread safe. If one does not work for you (check logs - "unable to load dynamic library '...' usually means file is not there (not the case) or cannot be loaded (due to compiler ABI mismatch or ts/nts mismatch). Try thread safe binaries first.
ifzen at yahoo dot com (2010-10-04 12:36:58)
And CentOS or Red-Hat : yum install php-soap
walter (2010-06-11 12:06:21)
Gentoo: add the 'soap' use flag to /etc/make.conf and emerge -av php
Julian (2010-04-15 06:26:25)
on Ubuntu or Debian serived servers...
sudo aptitude install php-soap