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

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

WBOY
WBOYOriginal
2016-06-06 19:36:061946browse

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




}

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