Home >Backend Development >PHP Tutorial >php soap异常 Premature end of data in tag html in line 1

php soap异常 Premature end of data in tag html in line 1

WBOY
WBOYOriginal
2016-06-13 12:11:174003browse

php soap错误 Premature end of data in tag html in line 1
在windows下 没有出现问题。
在linux 就报错了,错误如下:
Couldn't load from 'xxxx' : Premature end of data in tag html line 1

直接打开请求的链接,是能看到xml的内容的。怎么解决这个错误呢?

------解决思路----------------------
取wsdl的时候soapclient没有使用证书信息所以不行,你可以這樣,你可以獲取到XML,用curl抓下来保存成本地文件进行调用。

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