将Salesforce SOAP API与PHP一起使用时出错-“;发生了一个内部错误";
尝试将Salesforce SOAP API与PHP结合使用。我在尝试使用任何SForceEnterpriseClient方法时遇到以下错误将Salesforce SOAP API与PHP一起使用时出错-“;发生了一个内部错误";,php,cakephp,soap,salesforce,Php,Cakephp,Soap,Salesforce,尝试将Salesforce SOAP API与PHP结合使用。我在尝试使用任何SForceEnterpriseClient方法时遇到以下错误 Error: An Internal Error Has Occurred. Stack Trace #0 [internal function]: SoapClient->__call('retrieve', Array) #1 /path/to/public_html/site/app/Lib/Salesforce/SforceBaseCli
Error: An Internal Error Has Occurred.
Stack Trace
#0 [internal function]: SoapClient->__call('retrieve', Array)
#1 /path/to/public_html/site/app/Lib/Salesforce/SforceBaseClient.php(835): SoapClient->retrieve(Object(stdClass))
#2 /path/to/public_html/site/app/Model/MyModel.php(28): SforceBaseClient->retrieve('Id, Name', 'Contact', Array)
我不知道如何调试这个问题,它不是一个非常描述性的错误。非常感谢您的帮助
我正在使用CakePHP2,以防相关
编辑-更多详细信息:
SForceEnterpriseClient->login(stuff)
工作正常。没问题。错误是当我尝试使用upsert或retrieve(即登录后实际执行任何操作)时。在soap客户端中启用跟踪并调用调试方法以获取更多信息
$client = new SoapClient(array('trace' => true, 'exception' => false));
$client->retrieve('stuff');
var_dump($client->__getLastRequest());
var_dump($client->__getLastRequestHeaders());
var_dump($client->__getLastResponse());
var_dump($client->__getLastResponseHeaders());
抛出了一个异常-在这个调试之后,在try{etc..}catch{…}中包装调用会给我带来更多有用的错误。只是没有意识到异常导致了一般性错误!