如果我用nusoap,在windows上调试没有问题的,但在Linux下确提示错误
<?php
require_once('soapclient.php');
//创建soap对象
$client=new SoapClient($soapUrl, true);
//保证中文传送编码正常
$client->soap_defencoding = 'UTF-8';
$client->decode_utf8 = false;
//$err = $client->getError();
// if ($err) {
//  echo '<h2>Error</h2><pre>' . $err . '</pre>';
//}
//调用登陆函数,判断用户名和密码是否正确
$result=$client->call('UserLogin',array('parameters' =>array('UserName' => 'wbxan','UserPass'=> '222222')));
print_r("$result <br>");在linux提示错误:Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'$'' in inc/nusoap.php on line 6496

解决方案 »

  1.   

    $this->wsdl =& new wsdl($this->wsdlFile,$this->proxyhost,$this->proxyport,$this->proxyusername,$this->proxypassword,$this->timeout,$this->response_timeout);
      

  2.   

    PHP调用.net的webservice 中文乱码解决方案 
    http://blog.csdn.net/xuxiaoping_cumt/archive/2005/12/26/562607.aspx
    其实客户端调用webservice也蛮简单的
    只要会用程序发送get或者post请求 或构造
    get请求、post请求和soap请求就行了