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

PHP https访问webservice

WBOY
WBOYOriginal
2016-06-13 10:52:08999browse

测试环境中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要加载上述这些模块。


 

Statement:
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
Previous article:PHP注释符打破Next article:xdebug的安装资料