Home > php教程 > php手册 > PHP https访问webservice

PHP https访问webservice

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:52:08
Original
1012 people have browsed it

测试环境中PHP以http访问webservice,一切正常。

但生产环境的webservice是https,程序显示SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://***/Service?wsdl' : failed to load external entity "https://***/Service?wsdl", 但直接在网页中打开https://***/Service?wsdl,返回正常。

配置环境:

  php server:WAMP

  webservice:LAMP


查了一天的资料,原来要这样:

在windows下就是需要php_curl.dll和php_openssl.dll, curl同时依赖于libeay32.dll, ssleay32.dll, openssl依赖于libeay32.dll

也就是PHP server要加载上述这些模块。


 

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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template