T
T
tomus2016-09-19 11:34:01
Yii
tomus, 2016-09-19 11:34:01

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);

I see all service methods (__getFunctions()).
But calling a specific method returns an error:
<faultcode>env:Client</faultcode>
<faultstring>Internal Error</faultstring>

Although from the SOAPUI application the method works as it should...
414fd3b6939e46339d0fd89235ce8278.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question