Challenges Establishing 2 Way SSL communication using built in PHP SOAP Client

Clash Royale CLAN TAG#URR8PPP
Challenges Establishing 2 Way SSL communication using built in PHP SOAP Client
I'm trying to create a connection to a SOAP webservice using a .pem certificate and list all the functions that are available for consumption. However I have not been able to make any progress.
$client->__getFunctions() returns null and I get a error "Wrong Version".
$pem = 'certificate.pem';
$username = 'supertester';
$password = 'testing123';
$defaultEndpoint = " https://xxx.yyy.zzz:444/app/uat/BMS";
$uri = "https://xxx.yyy.zzz:444/app/uat";
$client = new SoapClient(null,
array(
'local_cert' => $pem,
'login' => $username,
'password' => $password,
'location' => $defaultEndpoint,
'uri' => $uri,
'style' => SOAP_RPC,
'use' => SOAP_ENCODED,
'soap_version' => SOAP_1_2,
'authentication'=> SOAP_AUTHENTICATION_DIGEST,
'ssl' => array(
'ciphers'=> "SHA1",
'verify_peer' => true,
'allow_self_signed' => false
),
'https' => array(
'curl_verify_ssl_peer' => true,
'curl_verify_ssl_host' => true
),
'cache_wsdl' => WSDL_CACHE_NONE,
'cache_ttl' => 86400,
'trace' => true,
'exceptions' => true,
)
);
var_dump($client->__getFunctions());
Any help would be very much appreciated.
soap_version
Yes, Still no joy.
– Indark
Aug 8 at 8:09
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Have you tried SOAP_1_1 for the
soap_versionoption parameter?– Marcel
Aug 8 at 7:23