PHP中如何调用webservice的实例参考
1个回答
推荐于2016-09-30
展开全部
<?php
try {
//$client = new
SoapClient("HelloService.wsdl",array('encoding'=>'UTF-8'));
$client =
new
SoapClient("http://webservice.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl");
var_dump($client->__getFunctions());
print("<br/>");
var_dump($client->__getTypes());
print("<br/>");
class qqCheckOnline{
var $qqCode = "10000";
};
$arrPara = array(new qqCheckOnline);
$arrResult =
$client->__Call("qqCheckOnline",$arrPara);//$client->qqCheckOnline($arrPara);
echo $arrResult->qqCheckOnlineResult . "<br/>";
} catch (SOAPFault
$e) {
print $e;
}
?>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询