使用php访问soap时出现以下错误:
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://xxxxxx.wsdl' : Start tag expected, '<' not found
经过不断尝试,解决办法如下:
(php.ini中需要开启openssl)
查看httpd状态
/usr/sbin/getsebool -a | grep httpd
打开 httpd_can_network_connect
setsebool -P httpd_can_network_connect on