Home >Backend Development >PHP Tutorial >php-webservice一会能用,一会不能用是几个意思,跟大姨妈似得,太傲娇了

php-webservice一会能用,一会不能用是几个意思,跟大姨妈似得,太傲娇了

WBOY
WBOYOriginal
2016-06-02 11:33:21935browse

phpwebservice

某一天能用,过了两天又不能用。经常出问题。是环境问题,还是webservice服务器问题呢,求指点。报错和代码如下图片说明

$client = new SoapClient('http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl');
$parm=array('mobileCode'=>'18014085993');
$result=$client->getMobileCodeInfo($parm);
echo ($result->getMobileCodeInfoResult);
?>

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