Answer the question
In order to leave comments, you need to log in
Error when accessing EMIAS web service via PHP SOAP, why?
There is an application on YII2. It is
necessary to implement a connection in EMIAS (emias dot info).
The connection is normal (via HTTPS, we use a certificate)
$options = [
'location' => $this->wsdl, //адрес wsdl
'local_cert' => $this->certificate, //путь к pem файлу
'passphrase' => "test",
'trace' => true,
'stream_context' => stream_context_create(
[
'http' =>
[
'user_agent' => 'Apache-HttpClient/4.1.1 (java 1.5)', //На всякий случай, что только уже не пробовали
],
'ssl' =>
['verify_peer' => false, 'verify_peer_name' => false],
]
),
'soap_version' => SOAP_1_1,
'exceptions' => true,
];
parent::__construct($this->wsdl, $options);
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question