我们是否可以从Sugar CRM7中的标准PHP库函数直接发送SOAP请求?

我们是否可以从Sugar CRM7中的标准PHP库函数直接发送SOAP请求?,php,sugarcrm,soap-client,jasperserver,nusoap,Php,Sugarcrm,Soap Client,Jasperserver,Nusoap,我正在研究Sugar CRM7与JasperReports服务器的集成,以从Jasper报表服务器获取报表。其中,我使用标准的PHP soap调用函数发送soap请求,该请求在本地windows和Linux基础服务器上的Sugar CRM7中准确工作。但当我将它上传到Live server环境时,它就不起作用了。我检查了错误的所有维度,但没有识别此错误。最后,我认为这个问题是由于sugar CRM7允许直接进行Soap调用 $client = new SoapClient($wsdl, arra

我正在研究Sugar CRM7与JasperReports服务器的集成,以从Jasper报表服务器获取报表。其中,我使用标准的PHP soap调用函数发送soap请求,该请求在本地windows和Linux基础服务器上的Sugar CRM7中准确工作。但当我将它上传到Live server环境时,它就不起作用了。我检查了错误的所有维度,但没有识别此错误。最后,我认为这个问题是由于sugar CRM7允许直接进行Soap调用

$client = new SoapClient($wsdl, array('login' => $username, 'password' => $password,   "trace" => 1, "exceptions" => 0));

$request = "
<request operationName=\"runReport\" locale=\"en\">
    <argument name=\"RUN_OUTPUT_FORMAT\">$format</argument>
   <resourceDescriptor name=\"\" wsType=\"\" uriString=\"$report\" isNew=\"false\">
       <parameter name=\"account_id\" isForPrompting=\"false\" class=\"java.lang.String \">$account_id</parameter>
       <label>null</label>
       $imageURL
  </resourceDescriptor>
</request>";


$client->runReport($request);

echo $rbs = $client->__getLastResponse();
$client=newsoapclient($wsdl,array('login'=>$username,'password'=>$password,“trace”=>1,“exceptions”=>0));
$request=”
$格式
$account\u id
无效的
$imageURL
";
$client->runReport($request);
echo$rbs=$client->_getLastResponse();
这是在本地windows和Linux中可以准确工作的代码,但在同样在Linux上的Live server上不能准确工作


如果我遗漏了一些出错的东西,请指导我

你真的需要使用肥皂吗?Jasperserver为任何服务器端技术都提供了RESTAPI,他们在这里举了一个例子:您试过了吗?