I am trying to make a request to a SOAP webservice in https, but i’m having problems to surprass the error:
“OAP-ERROR: Parsing WSDL: Couldn’t load from ‘https://abcdefghij….pt/ws_fff/WS_Server.asmx?WSDL’ : failed to load external entity “https://abcdefghij….pt/ws_fff/WS_Server.asmx?WSDL”
I’ve already read a lot of posts and tried to apply solutions about this subject but i dont know exactly what is failing.
Is there anyway to get the information what is exactly failing in this request?
-
CURL answer do not return that error, it returns authentication error (is NTLM but i am prepared with matejsvajger soap client https://github.com/matejsvajger/ntlm-soap-client in PHP)
-
i have tested other SOAP webservice without SSL and NTLM (internal network) and it works ok.
-
i just added ssl options to SOAP but still nothing:
'ssl' => array(.
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
'verify_host' => false,
'user_agent' => 'PHPSoapClient'.
).
- Checked internal firewall and nothing is blocked.
Code:
$params = array("id_card" => "349349121");
$options = array(
'login' => 'xxxxxxxx',
'password' => 'yyyyyyyyy',
'cache_wsdl' => WSDL_CACHE_NONE,
'trace' => 1,
'stream_context' => stream_context_create([.
'ssl' => [.
'domain' => 'acbedfghi....pt',
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
'verify_host' => false,
'user_agent' => 'PHPSoapClient'.
],
]),
);
try {.
$client = new SoapClient($wsdl, $options);
$response = $client->get_status($params);
} catch (SoapFault $fault) {.
echo "Erro: " . $fault->faultstring;
}.
user2952111 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.