PHP Script to check if the PHP SOAP client is installed.
<?php var_dump(class_exists(“SOAPClient”)); ?>
If you’re having problems with an application on your web hosting service where SOAP seems to be unavailable, you can check to make sure using the script above.
It will return a boolean value (TRUE/FALSE).
On many virtual hosting accounts, the SOAP client for PHP is often not enabled and request it to be enabled will not work either. Its important to check if this is the case before selecting a web-host because many applications use SOAP for accessing remote services. For example for checking real-time Fedex shipping rates.
If you need SOAP and you’re going the virtual hosting route, then checking for it should be a part of your pre-sales call with a hosting company.