关于webservice得不到值,小弟求帮助
getlistline();
print_r($result);
return $result;
}catch(soapfault $e){
return -1;
}
}
?>
我通过上面的代码得到的是空值,但我用soapui测试,接口是好的,可以得到值。
这东西弄的我郁闷死,求那位兄台帮忙解决一下,谢谢了。。。。。。。。。。。。。。。。
------解决方案--------------------
php codedefine('r_p',dirname(__file__)./);include_once(r_p.'class/nusoap/nusoap.php');$wsdl=http://www.ungb.com/sky/lineservice.asmx?wsdl;$parmarray=array(literal=>);$client = new nusoap_client($wsdl,true);$client->soap_defencoding = 'utf-8';$client->decode_utf8 = false;$client->xml_encoding = 'utf-8';$client->timeout = 900;$client->response_timeout = 900;$result = $client->call(getlistline,array(parameters=>$parmarray));print_r($result);