[英]Error using Salesforce SOAP API with PHP - “An internal error has occurred”
Trying to use the Salesforce SOAP API with PHP. 尝试将Salesforce SOAP API与PHP结合使用。 I am getting the following error on attempting to use any of the SForceEnterpriseClient methods.
尝试使用任何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/SforceBaseClient.php(835): SoapClient->retrieve(Object(stdClass))
#2 /path/to/public_html/site/app/Model/MyModel.php(28): SforceBaseClient->retrieve('Id, Name', 'Contact', Array)
I do not know how to debug this problem, it is not a very descriptive error. 我不知道如何调试此问题,这不是一个非常描述性的错误。 Help would be much appreciated!
帮助将不胜感激!
I'm using CakePHP 2, in case that's relevant. 如果相关,我正在使用CakePHP 2。
Edit - more detail: 编辑-更多详细信息:
SForceEnterpriseClient->login(stuff)
is working fine. 工作正常。 No problems there.
那里没有问题。 The error is when I try to use upsert or retrieve (ie actually do anything once I'm logged in).
错误是当我尝试使用upsert或检索(即登录后实际上执行任何操作)时。
Enable tracing in the soap client and call the debug methods to get more info 在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());
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.