首頁  >  文章  >  php教程  >  PHP调用接口返回的一直为空

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

WBOY
WBOY原創
2016-06-06 19:36:061926瀏覽

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