呵呵。搞定。原来是传递参数格式不对
$params3 = array('mop','moppass',$BiginDate,$content);
应该写成
$params3 = array('parameters' =>array('userName'=>'mop','password'=>'moppass','logDate'=>$BiginDate,'statisticsByBase64'=>$content));
$params3 = array('mop','moppass',$BiginDate,$content);
应该写成
$params3 = array('parameters' =>array('userName'=>'mop','password'=>'moppass','logDate'=>$BiginDate,'statisticsByBase64'=>$content));
echo '<h2>Request</h2><pre>' . mb_convert_encoding(htmlspecialchars($soap->request, ENT_QUOTES) , "GB2312", "UTF-8"). '</pre>';
echo '<h2>Response</h2><pre>' . mb_convert_encoding(htmlspecialchars($soap->response, ENT_QUOTES) , "GB2312", "UTF-8"). '</pre>';
echo '<h2>Debug</h2><pre>' . mb_convert_encoding(htmlspecialchars($soap->debug_str, ENT_QUOTES), "GB2312", "UTF-8") . '</pre>';最后的debug很有用的。
我来了快3年,还只是最近才升的4个三角。