首页 新闻 会员 周边 捐助

PHP调用接口返回的一直为空

0
悬赏园豆:10 [已解决问题] 解决于 2015-09-22 11:12

<?

$provinceSign=$_POST['provinceName'];
$carnum=$_POST['carnum'];
if($carnum!=null)
{
$frameNum=$_POST['frameNum'];
$engineNum=$_POST['egineNum'];
$carType=$_POST['carType'];

header("content-type:text/html;charset=utf-8");
//$client=new nusoap_client('http://115.29.169.98:8091/IllegalQuery/IllegalQuery.asmx?wsdl',true);
$client=new SoapClient('http://115.29.169.98:8091/IllegalQuery/IllegalQuery.asmx?wsdl');
$agentNummd5="33RD458322D7046F63DFD8B15R43E5";//top 文件生成
$client->decode_utf8=false;
$client->soap_defencoding='utf8';
$client->xml_encoding='utf8';
$params1 = array('agentNum'=>$agentNummd5,'carnum'=>$provinceSign.$carnum,'frameNum'=>$frameNum,'carType'=>$carType,'engineNum'=>$engineNum);

$reversed = $client->call('Query',array($params1));
$result=$reversed['QueryResult'];

echo json_encode($result);




}

转角VV的主页 转角VV | 初学一级 | 园豆:163
提问于:2014-12-26 12:03
< >
分享
最佳答案
0

soap扩展开了吗?

收获园豆:10
✎﹏ℳ๓₯㎕ღ | 小虾三级 |园豆:1499 | 2014-12-26 14:16
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册