I want to use PHP's SoapClient to connect to a Webservice that is hosted in a secure HTTP. The server - where this webservice is hosted - does not have a SSL certificate. When I tried to connect using SoapClient, I got following error -
"Warning: SoapClient::__construct() [function.--construct]: SSL: fatal protocol error".
SOAP Fault string -> SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/tcp'
SOAP Fault code : WSDL .
My code
try {
$client = new SoapClient('https://mywebservicelink?wsdl', array(
'allow_self_signed' => 1,
'verify_peer' => 0,
'trace' => 1,
'exceptions' => 1,
));
echo 'SOAP OBJECT<br />';
echo '<pre>';
print_r($client);
echo '*****************<br />';
} catch (Exception $e) {
echo '<pre>';
die(print_r($e));
}
Hope this information would be enough. Any one please tell me why I'm getting such an error? Is it because of certificate issue ? certificate (crt file) ?
Thanks for any help