I try to code my PHP Client Soap, that consume ASP.Net webservice, secured with authentication. My php code is :
<?php
ini_set("soap.wsdl_cache_enabled", "0");
try {
$client = new SoapClient("https://www.webservicexxx.com:60443/service.asmx?WSDL", array('location' => 'https://webservicexxxcom:60443/service.asmx',
'login' => "myLogin", 'password' => "myPAssword"));
} catch (SoapFault $e) {
echo $e;
}?>
I receive this error message:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.webservicexxx.com:60443/service.asmx?WSDL' : failed to load external entity "https://www.webservicexx.com:60443/service.asmx?WSDL" in /var/www/webservice2/soap-client.php:5 Stack trace: #0 /var/www/webservice2/soap-client.php(5): SoapClient->SoapClient('https://www.web...', Array) #1 {main}
knowing that i set enable this extensions on my php.ini on the ubuntu server:
extension = php_openssl.dll
extension = php_soap.dll
extension = php_curl.dll
and when i try to parse another php webservice on the same server with authentication it works :
try {
$client = new SoapClient("https://xx.xx.xx.xx:443/webservice1/notificationManager.wsdl", array('location' => 'http://xx.xx.xx.xx./webservice1/soap-server.php',
'login' => "myLogin", 'password' => "myPass"));
} catch (SoapFault $exception) {
echo $exception;
}
Why i can't have response from the first webservice ?