About WebService get the value, little brother ask for help
function Getline () {
$client = new SoapClient (' Http://www.ungb.com/sky/LineService.asmx?WSDL ');
try {
$result = $client->getlistline ();
Print_r ($result);
return $result;
}catch (SoapFault $e) {
return-1;
}
}
?>
I get the null value through the above code, but I use the SOAPUI test, the interface is good, you can get the value.
This thing made me depressed to die, beg that elder brother to help solve, thank you .......
------Solution--------------------
PHP code
define (' 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 = $client; Response_timeout =, $result = $client->call ("Getlistline", Array ("parameters" and "= $ParmArray)");p Rint_r ($ result);