简体   繁体   English

将Salesforce SOAP API与PHP结合使用时发生错误-“发生内部错误”

[英]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.

相关问题 PHP中的分段错误错误,使用SOAP连接到SalesForce - Segmentation Fault error in PHP, using SOAP to connect to SalesForce 贝宝沙盒:发生内部服务错误 - Paypal Sandbox: An internal service error has occurred 未捕获OAuthException:Facebook PHP API出现未知错误 - Uncaught OAuthException: An unknown error has occurred with Facebook PHP API cackphp具有同一页面的多个分页错误:发生内部错误 - cackphp multiple pagination with same page Error: An Internal Error Has Occurred 无法使用 Salesforce API 的 php 将访问令牌放入 SOAP 客户端 - Unable to put Access Token to SOAP Client using php for Salesforce API Salesforce PHP工具包20错误:SoapClient :: __ setSoapHeaders():无效的SOAP标头 - Salesforce PHP Toolkit 20 Error: SoapClient::__setSoapHeaders(): Invalid SOAP header cvent soap api错误(php) - cvent soap api error (php) HTTP错误500.0-内部服务器错误该页面无法显示,因为发生了内部服务器错误 - HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred SOAP错误:将Enterprise Client用于SalesForce时 - SOAP-ERROR: When using Enterprise Client for SalesForce 使用SOAP和php连接到API的“版本不匹配”错误 - “Version Mismatch” error using SOAP and php to connect to API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM