"Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host" PHP Soap Client SSL -
"Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host" PHP Soap Client SSL -
i trying setup soap client communicate using ssl. can able test soap request , response in soapui application using ssl certificate. working fine in soapui application.
when seek same using php throwing below error.
"fatal error: uncaught soapfault exception: [http] not connect host in "
below options used in soapclient. tried add together wssecurity header using wssoapclient.php
$context = stream_context_create( array( 'ssl' => array( 'ciphers' => 'tls-rsa-aes-128-cbc-sha' ), ) ); $options = array( "uri" => $url, "location" => $url, "soap_version" => soap_1_2, "encoding" => "utf-8", "trace" => true, "exceptions" => true, "local_cert" => __dir__ . "/keypair.pem", "cache_wsdl" => wsdl_cache_none, "connection_timeout" => 2000 );
where keypair.pem
combination of ssl certificate (.crt) , rsa private key (.pem)
i appreciate help in regard.
thanks
sithik
php ssl soap
Comments
Post a Comment