No value is available for webservice. could you help me ;? Phpfunctiongetline () {& nbsp; $ clientnewSoapClient (www. ungb. comskyLineService. asmx? WSDL); & nbsp; try {& nbsp; $ result $ cl the webservice cannot be obtained. help me
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 obtained a null value through the above code, but I tested it with soapui. The interface is good and the value can be obtained.
I am depressed about this. please help me solve this problem. 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 = 900;$client->response_timeout = 900;$result = $client->call("GetListLine",array("parameters"=>$ParmArray));print_r($result);