我正在使用salesforce PHP Toolkit 20.0 这是我的代码,非常简单:
$mySforceConnection = new SforceEnterpriseClient();
$mySforceConnection->createConnection(TEMPLATEPATH."/admin/salesforce/enterprise_wsdl.xml");
$login = $mySforceConnection->login($username, $password.$securityToken);
$sObject = new stdclass();
$sObject->First_Name__c = 'aaaa';
$sObject->Last_Name__c = 'vvvvv';
$sObject->Email__c = 'test@gmail.com';
$createResponse = $mySforceConnection->create(array($sObject), 'Patient__c');
这是我的肥皂错误
INVALID_TYPE: Must send a concrete entity type
我认为soap请求存在问题(xml为空)
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:enterprise.soap.sforce.com"><SOAP-ENV:Header><ns1:SessionHeader><ns1:sessionId>xxxxxxx</ns1:sessionId></ns1:SessionHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:create><ns1:sObjects/></ns1:create></SOAP-ENV:Body></SOAP-ENV:Envelope>
我认为this is请求应该是什么样的
有没有人遇到过这样的问题?
答案 0 :(得分:0)
事实证明,PHP7不支持工具包20.0