Home > Backend Development > PHP Tutorial > PHP https access webservice_PHP tutorial

PHP https access webservice_PHP tutorial

WBOY
Release: 2016-07-13 17:54:05
Original
1487 people have browsed it

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.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477977.htmlTechArticleIn 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: Couldnt load from https://***/Service?wsdl...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template