In the test environment, PHP accesses the webservice via http, and everything is normal.
But the webservice in the production environment is https, and the program displays SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://***/Service?wsdl' : failed to load external entity "https://* **/Service?wsdl", but opening https://***/Service?wsdl directly in the web page returns normal.
Configuration environment:
php server: WAMP
webservice:LAMP
After checking the information for a day, it turned out to be like this:
Under windows, you need php_curl.dll and php_openssl.dll. curl also depends on libeay32.dll, ssleay32.dll, openssl depends on libeay32.dll
That is, the PHP server needs to load the above modules.