首页 >php教程 >php手册 >PHP调用接口返回的一直为空

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

WBOY
WBOY原创
2016-06-06 19:36:061940浏览

? $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 nu

$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);




}

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn