Zend SOAP Version Mismatch Error

I have a Zend SOAP server and in my client, I set the version using this code:

$options = array();
$options['cache_wsdl'] = false;
$options['soap_version'] = SOAP_1_2;
$client = new Zend\Soap\Client("http://example.com/mysvc.php?wsdl", $options);

I get this exception:
SoapFault exception: [VersionMismatch] Wrong Version

I have tried with SOAP_1_1 and SOAP_1_2 and still get the same exception.
What am I missing here?

The service is installed on a CentOS 6.9 VirtualBox with PHP 5.6.36 installed to mock our production environment. Please do not suggest that I update to PHP7+, I have no control over the production server, I’m just building a mockup for testing.

From my PHP.ini:

Soap Client                  enabled
Soap Server                  enabled

Directive                    Local Value                Master Value
soap.wsdl_cache                    1                        1
soap.wsdl_cache_dir          /var/lib/php/wsdlcache        /tmp
soap.wsdl_cache_enabled            1                        1
soap.wsdl_cache_limit              5                        5
soap.wsdl_cache_ttl             86400                     86400

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.