S
S
SwoDs2018-05-23 15:44:03
PHP
SwoDs, 2018-05-23 15:44:03

SOAP with a certificate writes an error "Could not connect to host"?

We read a lot of what is on the net, but did not find an answer
We have a SOAP server within the network to which you can connect directly in the locale or using a certificate via the web
When working with the service in the locale, there are no problems, everything works. As soon as I start testing via the web with a certificate, I get an error:

Exception 'SoapFault' with message 'Could not connect to host'

in ...\commands\SoapTestController.php:128

Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://soap...', '', 1, 0)

The certificate connects correctly, because any change to it leads to an error - " 'SOAP-ERROR: Parsing WSDL: Couldn't load from ' https://... "
An important point, the server itself cannot go to the external address (as I wrote a certificate and all that), but as you know, to start SoapServer () you need to set the WSDL, external paths are registered in this wdlka ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SwoDs, 2018-05-24
@SwoDs

The problem was with the check point on the client side, I didn’t like the SOAP headers, I had to write the rules of the
p.s. amusing people who put the level below the one that the author has set and at the same time do not answer, how do they then know at what cost the decision was given, if they tried to spend a lot of time to debug all this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question